Oracle Objects for OLE C++ Class Library
Release 8.1.7

Part Number A85258-01

Library

Product

Contents

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 multi-threaded 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


 
Oracle
Copyright copy; 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents