Bull DPX/20 Podręcznik Użytkownika Strona 70

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag