Jump to content

SOM MainProgram: Difference between revisions

From EDM2
Created page with "This macro identifies an application as a SOM program and registers an end-of-program exit procedure to release SOM resources when the application terminates. ==Syntax== <PR..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
This macro identifies an application as a SOM program and registers an end-of-program exit procedure to release SOM resources when the application terminates.  
{{DISPLAYTITLE:SOM_MainProgram}}
This macro identifies an application as a SOM program and registers an end-of-program exit procedure to release SOM resources when the application terminates.


==Syntax==
==Syntax==
<PRE>
SOM_MainProgram();
SOM_MainProgram();
</PRE>


==Parameters==
==Parameters==
Line 12: Line 11:


==Remarks==
==Remarks==
This macro should appear near the beginning of each Windows application program that uses SOM or a SOM class library. It can also be used in OS/2 or AIX programs but is not generally required on these platforms. Any statically referenced SOM class libraries are initialized during the execution of this macro, and an end-of-program exit procedure is established to release SOM resources during normal program termination. (This macro combines the execution of the C/C++ "atexit" function with the SOM somMainProgram function and returns a reference to the global SOMClassMgr object.)  
This macro should appear near the beginning of each Windows application program that uses SOM or a SOM class library. It can also be used in OS/2 or AIX programs but is not generally required on these platforms. Any statically referenced SOM class libraries are initialized during the execution of this macro, and an end-of-program exit procedure is established to release SOM resources during normal program termination. (This macro combines the execution of the C/C++ "atexit" function with the SOM somMainProgram function and returns a reference to the global SOMClassMgr object.)
 
==Example Code==
<PRE>
</PRE>


==Related==
==Related==
===Functions===
;Functions
* [[somMainProgram]]  
* [[somMainProgram]]
===Macros===
;Macros
* [[SOM_ClassLibrary]]  
* [[SOM_ClassLibrary]]


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

Latest revision as of 02:00, 6 May 2020

This macro identifies an application as a SOM program and registers an end-of-program exit procedure to release SOM resources when the application terminates.

Syntax

SOM_MainProgram();

Parameters

None

Return Code

Remarks

This macro should appear near the beginning of each Windows application program that uses SOM or a SOM class library. It can also be used in OS/2 or AIX programs but is not generally required on these platforms. Any statically referenced SOM class libraries are initialized during the execution of this macro, and an end-of-program exit procedure is established to release SOM resources during normal program termination. (This macro combines the execution of the C/C++ "atexit" function with the SOM somMainProgram function and returns a reference to the global SOMClassMgr object.)

Related

Functions
Macros