Jump to content

SomClassInitFuncName: Difference between revisions

From EDM2
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== ==..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:somClassInitFuncName}}
This function returns the name of the function used to initialize classes in a DLL.
This function returns the name of the function used to initialize classes in a DLL.


==Syntax==
==Syntax==
<PRE>
string    rc;
string    rc;
 
rc = (*somClassInitFuncName)();
rc = (*somClassInitFuncName)();
</PRE>


==Parameters==
==Parameters==


==Return Code==
==Return Code==
; rc (string) : Returns the name of the function that should be used to initialize classes in a DLL.
;rc (string) : Returns the name of the function that should be used to initialize classes in a DLL.


==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 [[SOMClassInitFuncName]].  
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==
Line 28: Line 27:


==Related==
==Related==
===Data Structures===
;Data Structures
* string (somcorba.h)  
* string (somcorba.h)  
===Functions===
;Functions
* [[SOMLoadModule]]  
* [[SOMLoadModule]]  
* [[SOMDeleteModule]]  
* [[SOMDeleteModule]]  


[[Category:SOM Kernel]]
[[Category:SOM Kernel]]

Latest revision as of 18:36, 12 October 2022

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)
Functions