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

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 © 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