Oracle Objects for OLE C++ Class Library
Release 9.2

Part Number A95896-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
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 © 1998, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback