1-40 SOMobjects Base Toolkit: Programmer’s Reference Manual
SOMClassInitFuncName Function
Purpose
Returns the name of the function used to initialize classes in a DLL.
Syntax
string (*SOMClassInitFuncName) ( );
Description
The SOMClassInitFuncName 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.
Return Value
Returns the name of the function that should be used to initialize classes in a DLL.
C Example
#include <som.h>
string XYZFuncName() { return ”XYZ”; }
main()
{
SOMClassInitFuncName = XYZFuncName;
...
}
Related Information
Functions: SOMLoadModule, SOMDeleteModule
Data Structures: string (somcorba.h)
Komentarze do niniejszej Instrukcji