Skip Headers

Oracle® Objects for OLE C++ Class Library Developer's Guide
10g Release 1 (10.1)

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

OConnection Method

Applies To

OConnection

Description

OConnection constructor

Usage

OConnection(void)

OConnection(const OConnection &otherconn)

Arguments

otherconn
Another OConnection object that you are copying
Remarks

These methods construct a new OConnection instance.

The default constructor constructs an unopened OConnection object. It cannot fail. You must open the object before you can use it.

The copy constructor copies another OConnection object. If that other OConnection object is open - which means it is a handle on an implementation connection object - the new OConnection object becomes a handle to that same connection object. The copy constructor copies the reference to the connection object but does not copy any strings that the source OConnection may own. The copy constructor can fail; check whether the new OConnection is open after the constructor call.

There is no Open method for the OConnection class. To get an open OConnection, call one of the GetConnection methods.