SOM_MainProgram

From EDM2
Jump to: navigation, search

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