BBC BASIC for Windows
Programming >> BBC BASIC language >> BBC BASIC as script language
http://bb4w.conforums.com/index.cgi?board=language&action=display&num=1391532974

BBC BASIC as script language
Post by kolesiko 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. smiley

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?
Re: BBC BASIC as script language
Post by admin on Feb 4th, 2014, 5:32pm

on Feb 4th, 2014, 3:56pm, kolesiko wrote:
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).

Richard.