🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3140

CoConnection.Create(????)

#3140
From: Salimov
Date: Tue, 19 Nov 2002 06:04
25 lines
1680 bytes
I have a object ADOConnection1  of class TADOConnection .
Then programm must work with another object of TADOConnection, but same
ConnectionObject.

ADOConnection1->Connected = true; // well

TADOConnection *a = new TADOConnection( Application);
a->ConnectionObject = ADOConnection1->ConnectionObject;
a->.....work...

// I try:
// a->ConnectionObject = CoConnection.Create(????);
// then destructor of 'a' close another _Connection not my!
// Plese, what parametr mast send to CoConnection.Create(????);

delete a; // <--- Big trouble

if( ADOConnection1->Connected ){
/// When object 'a' destroyed ConnectionObject is closed!!!
// I do not wont close Connection, I wont work with ADOConnection1
}


Thanks in advance
Technical Details
Message-ID: <3dd9d455$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-08!supernews.com!easynet-quince!easynet.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,b8f64e2b48d4eb2c,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-11-18 22:17:34 PST
From: "Salimov" <salimov@chemk.chel.com.ru>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: CoConnection.Create(????) 
Date: Tue, 19 Nov 2002 11:04:06 +0500
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 213.242.59.34
Message-ID: <3dd9d455$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1037685845 213.242.59.34 (18 Nov 2002 22:04:05 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-08!supernews.com!easynet-quince!easynet.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail