Jump to content

SOM MainProgram

From EDM2
Revision as of 23:14, 10 October 2017 by Martini (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Example Code


Related

Functions

Macros