Oracle Objects for OLE C++ Class Library
Release 9.0.1

Part Number A90172-01

Home

Book List

Contents

Master Index

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.


 
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.

Home

Book List

Contents