Bull DPX/20 Guida Utente Pagina 70

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 424
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 69
1-58 SOMobjects Base Toolkit: Programmers Reference Manual
SOM_MainProgram Macro
Purpose
Identifies an application as a SOM program and registers an end-of-program exit procedure
to release SOM resources when the application terminates.
Syntax
SOMClassMgr SOM_MainProgram ( );
Description
The SOM_MainProgram 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
#include <som.h>
#include <windows.h>
int PASCAL WinMain (HINSTANCE inst,
WORD ds,
WORD Heapsize,
LPSTR cmdLine)
{
...
SOM_MainProgram ();
...
/* Rest of main program follows */
}
Related Information
Functions: somMainProgram
Macros: SOM_ClassLibrary
Vedere la pagina 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 423 424

Commenti su questo manuale

Nessun commento