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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 237
2-70
SOMobjects Base Toolkit: Programmers Reference Manual
get_default_context Method
Purpose
Returns the default process Context object.
IDL Syntax
ORBStatus get_default_context (
out Context ctx);
Description
The get_default_context method gets the default process Context object.
Ownership of the allocated Context object is transferred to the caller.
Parameters
receiver A pointer to the ORB object.
env A pointer to the Environment structure for the method caller.
ctx A pointer to where the method will store a pointer to the returned Context
object.
Return Value
The get_default_context method returns an ORBStatus return code: 0 indicates success,
while a non-zero value is a DSOM error code (see Chapter 6 of the SOM Toolkit User’s
Guide).
Example
#include <somd.h>
Environment ev;
Context cxt;
long rc;
...
rc = _get_default_context(SOMD_ORBObject, &ev, &cxt);
Original Class
ORB
Przeglądanie stron 237
1 2 ... 233 234 235 236 237 238 239 240 241 242 243 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag