mb_set_include |
![]() ![]() |
status_t mb_set_include( mb_interpreter_t* s, const char* lpszIncludeFile, int dwOptions )
This will add an include file that will automatically be included when a script runs unless it is run using the MB_LOAD_NOSYSFILES option flag. This is useful if you always want to include an application defined include file. For example, if you application is called MyGreatApp.exe you may want to create an include file called MYGREATAPP.BIS with application defined constants etc. and then always include this file.
Example
// Note, this uses MFC AfxGetAppName() to get the name of the application
mb_set_include( m_bas, AfxGetAppName(), MB_SF_ONCE|MB_SF_MUSTEXIST ); |