SomClassInitFuncName: Difference between revisions
Appearance
Created page with "This function returns the name of the function used to initialize classes in a DLL. ==Syntax== <PRE> string rc; rc = (*somClassInitFuncName)(); </PRE> ==Parameters== ==..." |
|||
Line 14: | Line 14: | ||
==Remarks== | ==Remarks== | ||
This function is called by the SOM Class Manager to determine what function to call to initialize the classes in a DLL. The default version returns the string "[[SOMInitModule]]." The function can be replaced (so that the Class Manager will invoke a different function to initialize classes in a DLL) by changing the value of the global variable [[ | This function is called by the SOM Class Manager to determine what function to call to initialize the classes in a DLL. The default version returns the string "[[SOMInitModule]]." The function can be replaced (so that the Class Manager will invoke a different function to initialize classes in a DLL) by changing the value of the global variable [[somClassInitFuncName]]. | ||
==Example Code== | ==Example Code== |
Revision as of 22:45, 10 October 2017
This function returns the name of the function used to initialize classes in a DLL.
Syntax
string rc; rc = (*somClassInitFuncName)();
Parameters
Return Code
- rc (string)
- Returns the name of the function that should be used to initialize classes in a DLL.
Remarks
This function is called by the SOM Class Manager to determine what function to call to initialize the classes in a DLL. The default version returns the string "SOMInitModule." The function can be replaced (so that the Class Manager will invoke a different function to initialize classes in a DLL) by changing the value of the global variable somClassInitFuncName.
Example Code
#include <som.h> string XYZFuncName() { return "XYZ"; } main() { SOMClassInitFuncName = XYZFuncName; ... }
Related
Data Structures
- string (somcorba.h)