Overview

Previous  Next

 

MyBASIC2 provides an easy way of adding BASIC Scripting to your application.  The scripting API consists of a number of exported functions and helper Macros,  The current interface has been developed for C/C++ applications but can easily be adapter to any programming language since the  MyBASIC2 interpreter resides in a DLL.

 

To create an Extension Library, you need to create a DLL with 2 exported functions, mb_ext_load and mb_ext_unload to load and unload the functions in the library.  Each function then needs to have it's callback function the same way as when you add scripting functions to an application.

 

The examples ini this guide will show you how to use the APIs using C/C++ but we will add as we extend to other programming environment.