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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 32
SOM Kernel Reference 1-21
somMainProgram Function
Purpose
Performs SOM initialization on behalf of a new program.
Syntax
SOMClassMgr *somMainProgram ( );
Description
The somMainProgram function informs SOM about the beginning of a new thread of
execution (called a task on Windows). The SOM Kernel then performs any needed
initialization, including the deferred execution of the SOMInitModule functions found in
statically-loaded class libraries. The somMainProgram function must appear near the
beginning of all Windows main programs, and may also be used in AIX or OS/2 programs.
When used, it supersedes any need to call the somEnvironmentNew function.
A convenience macro, SOM_MainProgram, which combines the execution of the
somMainProgram function with the scheduling of the somEnvironmentEnd function
during normal program termination, is available for C and C++ programmers.
Return Value
A pointer to the SOMClassMgr object.
Related Information
Functions: somEnvironmentNew, somEnvironmentEnd
Macros: SOM_MainProgram, SOM_ClassLibrary
Przeglądanie stron 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag