Bull DPX/20 Guia do Utilizador Página 70

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 424
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 423 424

Comentários a estes Manuais

Sem comentários