View Full Version : thinBasic interface under CGG C/C++ language
RobertoBianchi
16-01-2006, 14:32
thinBasic allows GCC C/C++ programmers to develop their own thinBasic modules. Modules are special dll that are loaded dynamically by thinBasic engine during scripts execution. Modules can be used to implement new thinBasic functionalities adding new keywords to the language or interfacing external programs.
We provide static thinC.a library.
Plase find here attached interface file with a simple module example, for GCC compiler (a Dev-C++ project is enclose).
Feel free to ask here in case of any question on module development.
Regards
Roberto
I don't know if anyone is interested but I've created a Code::Blocks project.
So now people can create thinBasic modules using MinGW (http://www.mingw.org/) & the Code::Blocks (http://www.codeblocks.org/) IDE.
Thanks Matthew, I like code blocks, currently playing with Visual Studio... but code blocks for many things is quicker as I can drag my code blocks folder to any other computer and am set to carry on, so the portability is really awesome. I know I will use this in future so thanks a lot!
Thanks kent, a few months ago I downloaded the entire Visual Studio 2008 Express & the MSDN Help Documentation.
It took me about 5 hours to download everything & write it all to 2 DVDs. :shock29:
Michael Hartlef
15-04-2009, 09:22
I don't know if anyone is interested but I've created a Code::Blocks project.
So now people can create thinBasic modules using MinGW (http://www.mingw.org/) & the Code::Blocks (http://www.codeblocks.org/) IDE.
That's cool and will be handy one day. :eusaclap:
Lionheart008
29-04-2009, 08:21
hi roberto, matthew, kent, michael :)
good morning and YES, I would like to know how to create such a thinbasic module... :)
Plase find here attached interface file with a simple module example, for GCC compiler (a Dev-C++ project is enclose).
Feel free to ask here in case of any question on module development.
1) I have downloaded dev c++ last night and ask myself it's possible to do it all with dev-c++ ???
2) and what I need it for to create *.dll, headers, libraries, exe file and much more... or a link could help... how to build an own thinbasic (I can do it all with dev-c++?) module or so I can understood the basic structure behind it...
I don't know if anyone is interested but I've created a Code::Blocks project.
So now people can create thinBasic modules using MinGW & the Code::Blocks IDE.
I have tried to use robertos and matthew examples... (copied code blocks too) they are working, but how to build such things??? more questions I will take here... sorry, I am sure :)
best regards, Lionheart
ps: I cannot install Visual Studio 2008 Express, my old notebook troubled to do that... ;(
I use Visual C++ 2005 express edition...
Michael Hartlef
29-04-2009, 10:28
Hi Franck,
I find it difficult to identify what your problems actually are.
1) I have downloaded dev c++ last night and ask myself it's possible to do it all with dev-c++ ???
Doing what? What do you want to create with dev-c++? Creating a module is definately possible as you can see from the sample that was included.
2) and what I need it for to create *.dll, headers, libraries, exe file and much more... or a link could help... how to build an own thinbasic (I can do it all with dev-c++?) module or so I can understood the basic structure behind it...
Everything is there. The thinCore include file needs to be updated but for sure it is usefull. What oyu need extra? A code editor (Notepad copuld serve your needs) and of course knowledge of C++ in general, Dev-C++ to use the compiler and maybe knowledge about what you want to actually create.
Are you familiar with C++ files and there structure?
I have tried to use robertos and matthew examples... (copied code blocks too) they are working, but how to build such things??? more questions I will take here... sorry, I am sure :)
Do you mean by how to build the actually compiling process or how the C++ sources are structured and what needs to be in it, to become a thinBasic module DLL?
ps: I cannot install Visual Studio 2008 Express, my old notebook troubled to do that... ;(
I use Visual C++ 2005 express edition...
This topic is about Dev C++, Code-Blocks. Visual C++ is a different thing and if you try to use the files posted with your Visual C++ then you have to rebuild the project on yourself. You also maybe need to change the sources.
Lionheart008
29-04-2009, 13:12
hi michael :)
short answer: first of all, thank you for prompted reply... yes, I see it's much more than coding some lines and I have to understand how to works it all together to build new module or using code block or dev-c++, I was silly enough to think it's much easier...
Creating a module is definately possible as you can see from the sample that was included.
I have loaded the example of matthew and roberto, but it's another thing to expand it or making new input... therefore my knowledge isn't high enough, I see it ;) but I am eager to learn it... but one step after another... it's better to check other c++ scripts... I give this project (own thinbasic module) to a later date for my personal release... :D
ciao, best wishes, Lionheart, have a nice day, it's always raining here and I have two days holidays... malheuresment
Michael Hartlef
29-04-2009, 14:44
So if C++ is the problem then I suggest that you either use PowerBasic or FreeBasic.