BBC BASIC for Windows
« BBC BASIC as script language »
Welcome Guest. Please Login or Register. Apr 5th, 2018, 11:49pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
BBC BASIC as script language
« Thread started on: Feb 4th, 2014, 3:56pm »
I need to write a DLL. As far as I know, it is highly desirable to write DLL in C/C++. It interacts with the "parent" program as a plugin. Program producer unveiled boilerplate of plugin in C++. We only need to expand its own functions, classes, and so on. However, I do not like C-like languages. I love BASIC.
Is it possible to use BBC BASIC as scripting language to expand C++ DLL? This greatly simplified my task, because it would be sufficient only once to write in C++ a very simple interface between parent program and the script. And then edit the text file every time, when I update script. Woo-hoo!
Perhaps, I thought something fabulous and unfulfilled?
Is it possible to use BBC BASIC as scripting language to expand C++ DLL?
Certainly you can use BBC BASIC as a scripting language. You can either issue individual 'star' (OSCLI) commands or build a batch file and then run that.
To build your DLL you could use BBC BASIC to create the C/C++ source code and then issue the appropriate commands to compile it. Whether that will have advantages over other approaches is for you to judge.
Incidentally it's important to use BB4W v5.95a for this application because it uses the default command processor (usually CMD.EXE) whereas earlier versions call COMMAND.COM (which doesn't exist in 64-bit Windows).