Oracle® Objects for OLE C++ Class Library Developer's Guide 10g Release 1 (10.1) Part Number B10119-01 |
|
Applies To
No class. This is a standalone routine.
Description
This method initializes the C++ class library
Usage
oboolean OStartup(int ThreadingModel= OSTARTUP_APARTMENTTHREADED)
Arguments
ThreadingModel |
Can either be OSTARTUP_MULTITHREADED or OSTARTUP_APARTMENTTHREADED. By default it is set to OSTARTUP_APARTMENTTHREADED. The values are defined in the ORACL.H file. |
This routine initializes the C++ class library for this process. It must be called for every process.
In the multithreaded mode there is a separate connection for every ODatabase::Open() . In the apartment-threaded mode connections are shared if they share the same connection information.
Example
Start the C++ class library:
OStartup(); //Initializes in the apartment-threaded mode
OStartup(OSTARTUP_MULTITHREADED); //Initializes a free threaded apartment