Skip Headers
Oracle® Objects for OLE C++ Class Library Developer's Guide
10g Release 2 (10.2)

Part Number B14308-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

OStartup Method

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.
Remarks

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