Oracle Objects for OLE C++ Class Library
Release 9.0.1

Part Number A90172-01

Home

Book List

Contents

Master Index

Feedback

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 © 1996-2001, Oracle Corporation.

All Rights Reserved.

Home

Book List

Contents