Oracle® Objects for OLE C++ Class Library Developer's Guide 10g Release 1 (10.1) Part Number B10119-01 |
|
Applies To
Description
OConnection constructor
Usage
OConnection(void)
OConnection(const OConnection &otherconn)
Arguments
otherconn |
Another OConnection object that you are copying |
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.