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.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: BBC BASIC as script language  (Read 539 times)
kolesiko
New Member
Image


member is offline

Avatar




PM


Posts: 2
question 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. 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?
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
question Re: BBC BASIC as script language
« Reply #1 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.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls