ErosOlmi
24-09-2007, 11:57
Hi all,
please find here attached first full source code example module developed with FreeBasic (continuation from this post: http://community.thinbasic.com/index.php?topic=1208.0 ).
How to work with FreeBasic.
First, here I assume FreeBasic version 0.18.1 Beta is installed into the base directory "C:\FreeBasic\" If not, it should be work in any case providing the IDE is aware of it.
Second I assume FbEdit IDE is installed into "C:\FreeBasic\FbEdit\" directory. If not it should work the same providing that FbEdit is the default application to open .fbp files
Steps:
install FreeBasic downloading from http://www.freebasic.net/
install FbEdit downloading from http://www.radasm.com/fbedit/ Open ZIP file and extract all files (maintaining directory structure under "C:\FreeBasic\". You should have something like "C:\FreeBasic\FbEdit\" with all files inside.
link .fbp files to be opened by "C:\FreeBasic\FbEdit\FbEdit.exe"
If all wend fine, you have now FreeBasic up and running.
How to work with thinBasic modules using FreeBasic.
Download attached zip file and unzip it into a new directory
double click on "thinBasic_FBGFX.fbp" and if all was OK in previous setup you should have the project open into FbEdit. thinBasic_FBGFX.bas and thinCore.bi should be open in the editor
have a look at the code. Structure works more or less the same as in Power Basic
to compile the module just press F5 or menu Make/Compile
List of included files:
libthinCore.dll.a
Static interface library needed by FreeBasic compiler in order to link to thinCore.dll (main thinBasic engine) at runtime
Test_FBGFX_Screen.tBasic
Sample script
Test_FBGFX_ScreenRes.tBasic
Sample script
thinBasic_FBGFX.bas
Module source code
thinBasic_FBGFX.dll
Module compiled code
thinBasic_FBGFX.fbp
FbEdit project file. It contains all the info needed to manage a thinBasic module project under FreeBasic
thinCore.bi
Interface file to be included into every module source code. IT IS UNDER HEAVY CHANGE so expect this file to be quite different in next release. Leave this file as is and look at it just for reference
_________________________________________________
If all went fine you should be able to compile at first try. If not, report problems here.
Also consider we are working on this module interface. Many changes will be introduced if we will see some interest. Some part are still missing like using script variables passed BYREF but it will be quite easy to introduce and we will do it as time will permit.
Tell us what you think and what you need and we will do our best to make it real.
Ciao
Eros
please find here attached first full source code example module developed with FreeBasic (continuation from this post: http://community.thinbasic.com/index.php?topic=1208.0 ).
How to work with FreeBasic.
First, here I assume FreeBasic version 0.18.1 Beta is installed into the base directory "C:\FreeBasic\" If not, it should be work in any case providing the IDE is aware of it.
Second I assume FbEdit IDE is installed into "C:\FreeBasic\FbEdit\" directory. If not it should work the same providing that FbEdit is the default application to open .fbp files
Steps:
install FreeBasic downloading from http://www.freebasic.net/
install FbEdit downloading from http://www.radasm.com/fbedit/ Open ZIP file and extract all files (maintaining directory structure under "C:\FreeBasic\". You should have something like "C:\FreeBasic\FbEdit\" with all files inside.
link .fbp files to be opened by "C:\FreeBasic\FbEdit\FbEdit.exe"
If all wend fine, you have now FreeBasic up and running.
How to work with thinBasic modules using FreeBasic.
Download attached zip file and unzip it into a new directory
double click on "thinBasic_FBGFX.fbp" and if all was OK in previous setup you should have the project open into FbEdit. thinBasic_FBGFX.bas and thinCore.bi should be open in the editor
have a look at the code. Structure works more or less the same as in Power Basic
to compile the module just press F5 or menu Make/Compile
List of included files:
libthinCore.dll.a
Static interface library needed by FreeBasic compiler in order to link to thinCore.dll (main thinBasic engine) at runtime
Test_FBGFX_Screen.tBasic
Sample script
Test_FBGFX_ScreenRes.tBasic
Sample script
thinBasic_FBGFX.bas
Module source code
thinBasic_FBGFX.dll
Module compiled code
thinBasic_FBGFX.fbp
FbEdit project file. It contains all the info needed to manage a thinBasic module project under FreeBasic
thinCore.bi
Interface file to be included into every module source code. IT IS UNDER HEAVY CHANGE so expect this file to be quite different in next release. Leave this file as is and look at it just for reference
_________________________________________________
If all went fine you should be able to compile at first try. If not, report problems here.
Also consider we are working on this module interface. Many changes will be introduced if we will see some interest. Some part are still missing like using script variables passed BYREF but it will be quite easy to introduce and we will do it as time will permit.
Tell us what you think and what you need and we will do our best to make it real.
Ciao
Eros