Search

Main Menu

Login
Username:

Password:

Remember me?
Anonymous

Lost Password?

Register now!

Samurize Forums -> FreeBASIC


  Reply to this topicStart new topicStart Poll

> FreeBASIC, template
uziq
  Posted: Mar 30 2006, 05:10 AM
Quote Post
The Pluginator
*****



Group: Admin
Joined: Sep 25 2003
Posts: 2,599
Offline



FreeBASIC is a new compiler that was started in September 2004, and it can make plugins for Samurize. It's open-source (free)! smil3dbd4d6422f04.gif

It's pretty versatile, compiling for Windows, Linux, XBOX, etc. I think it also has direct support for C header files. So, if you've ever wanted to make plugins, this is probably one of the easiest/cheapest ways to do it.

One downside is that it does not seem to have a mature GUI dialog editor, so those must be coded by hand. But as long as you don't get too crazy, it shouldn't be a problem. smil3dbd4d4e4c4f2.gif


1. Install the FreeBASIC 0.15b + FBIde bundle.
2. Run FBIde and change the Compiler command setting (View -> Settings -> FreeBASIC tab), keeping all the quotes, and adjusting the Samurize dir to your computer:
QUOTE
"<$fbc>" -dll "<$file>" -arch 586 -target win32 -s gui -w 1 -x "C:\Program Files\Samurize\plugins\<$file_name>.dll"

3. Use the template I made to get started. It's got a resizable configure dialog with examples of how to choose a file and a folder, along with some example controls.

-------------------------------------------
- A recent review of FreeBASIC.
- German FreeBASIC site
- WinAPI help file
- EzeeGUI - a DOS-based (smil442f1b21af6b9.gif) GUI editor.
- Visual wx-c Developer - another GUI editor, but I think it relies on an external DLL (>3MB). So plugins would need to include it.
- RadASM IDE - I haven't used this much, but it looks like a very good editor with the ability to make dialogs. It may be complicated at first, but if you want to make detailed dialogs, this looks like a winner. smil43c71019219b4.gif
- JellyFish Pro is an excellent IDE code editor.

edit: corrected some issues.

This post has been edited by uziq on May 9 2006, 05:55 PM

Attached File ( Number of downloads: 423 )
Attached File  FreeBASIC_Example_Plugin.zip
PMEmail PosterMSN
Top
uziq
Posted: Mar 30 2006, 05:11 AM
Quote Post
The Pluginator
*****



Group: Admin
Joined: Sep 25 2003
Posts: 2,599
Offline



screenshot

Attached Image (Click thumbnail to expand)
Attached Image
PMEmail PosterMSN
Top
uziq
Posted: Apr 9 2006, 05:08 PM
Quote Post
The Pluginator
*****



Group: Admin
Joined: Sep 25 2003
Posts: 2,599
Offline



A stand-alone exe (this is not meant for plugins, but you can create other things such as console programs or programs for alert commands, etc).

User posted image


edit: Corrected issues that the compiler had with certain variables. Previously -w 1 was used in the command line to suppress those errors, but now that's not needed anymore. I've also added the start of a RichEdit textbox example (it needs a lot more work).

This post has been edited by uziq on May 5 2006, 06:33 PM

Attached File ( Number of downloads: 725 )
Attached File  FreeBASIC_DialogExample.zip
PMEmail PosterMSN
Top
KMDonlon
Posted: Apr 9 2006, 05:18 PM
Quote Post
The Weather Freak
*****



Group: Member
Joined: Feb 19 2004
Posts: 3,535
Offline



Sweet yet again...maybe I have chance to learn to code smil3dbd4ddd6835f.gif


--------------------
PMEmail PosterICQAOLYahooMSN
Top
uziq
Posted: Apr 12 2006, 07:05 PM
Quote Post
The Pluginator
*****



Group: Admin
Joined: Sep 25 2003
Posts: 2,599
Offline



Updated the example dialog with more options.
PMEmail PosterMSN
Top
AdamC
Posted: Apr 13 2006, 03:24 AM
Quote Post
The Programming Frog
*****



Group: Admin
Joined: Sep 26 2003
Posts: 2,496
Offline



Sweet fingers crossed we can have more plugin coders smil3dbd4d4e4c4f2.gif
PMICQAOLYahooMSN
Top
uziq
Posted: Apr 14 2006, 06:46 PM
Quote Post
The Pluginator
*****



Group: Admin
Joined: Sep 25 2003
Posts: 2,599
Offline



Updated.
PMEmail PosterMSN
Top
Spewed
Posted: Jul 12 2006, 10:06 AM
Quote Post
Our Blind Friend
*****



Group: Moderating Crew
Joined: Jan 12 2006
Posts: 1,555
Offline



Sweet, I'm into this now! smil43e6c401b9177.gif
PMEmail PosterMSN
Top
Spewed
Posted: Jul 12 2006, 10:52 AM
Quote Post
Our Blind Friend
*****



Group: Moderating Crew
Joined: Jan 12 2006
Posts: 1,555
Offline



Do you have more complicated examples to help me understand how different things can be done uziq? And tips from where to begin would be nice, I'm pretty confused after I browsed the example source code through. smil43c71019219b4.gif
PMEmail PosterMSN
Top
uziq
Posted: Jul 12 2006, 12:47 PM
Quote Post
The Pluginator
*****



Group: Admin
Joined: Sep 25 2003
Posts: 2,599
Offline



It's the only example I made. You'll need to have some idea of what you want to do before I can give you any tips.
PMEmail PosterMSN
Top
Spewed
Posted: Jul 12 2006, 01:24 PM
Quote Post
Our Blind Friend
*****



Group: Moderating Crew
Joined: Jan 12 2006
Posts: 1,555
Offline



Okies, I let you know when I have something reasonable.
PMEmail PosterMSN
Top
Spewed
Posted: Jul 12 2006, 02:24 PM
Quote Post
Our Blind Friend
*****



Group: Moderating Crew
Joined: Jan 12 2006
Posts: 1,555
Offline



If we keep this so simple as possible, how can I get local ip for example?

Edit: Nah, this is probably too big fish for me since I don't understand the code at all. smil3dbd4ddd6835f.gif

Would take weeks of learning which doesn't tempt me for now.

smil43c710c13b23c.gif
PMEmail PosterMSN
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Come On, Get Samurized!