mb_set_library |
status_t mb_set_library( mb_interpreter_t* s, const char* lpszLibraryFile, int dwOptions )
This is similar to mb_set_include but instead of include file it loads a library instead. This is instead of having to specify $LIBRARY "MyAppLibrary" in every script.
Example
// Load the specified library as a topmost system library so it stays until // the interpreter has closed. This will make the librray available to all // sub interpreters as well as the current interpreter. // // Note, this uses MFC AfxGetAppName() to get the name of the application
mb_set_library( bas, AfxGetAppName(), MB_SF_TOP | MB_SF_SYSLIB );
|