Oracle Objects for OLE C++ Class Library Release 9.2 Part Number A95896-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.
|
Copyright © 1998, 2002 Oracle Corporation. All Rights Reserved. |
|