Article View: borland.public.cppbuilder.database.ado
Article #3157Re: CoConnection.Create(????)
From: Ronald Loonstra
Date: Fri, 22 Nov 2002 20:16
Date: Fri, 22 Nov 2002 20:16
43 lines
2258 bytes
2258 bytes
Salimov,
Just some suggestions:
Why do you have to reuse the ConnectionObject of the first ADOConnection?
Why not simply use: a->ConnectionString = ADOConnection1->ConnectionString?
Or reuse the first connection: TADOConnection *a = ADOConnection1.
--
HTH
Ronald Loonstra
CodeFit Applications
www.codefit.nl
"Salimov" <salimov@chemk.chel.com.ru> schreef in bericht
news:3dd9d455$1@newsgroups.borland.com...
>
> 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:
<3dde8ecc$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-05!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news-lei1.dfn.de!news-fra1.dfn.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3dd9d455$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,b8f64e2b48d4eb2c X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-11-22 12:10:08 PST From: "Ronald Loonstra" <r.loonstra@codefit.nl> Newsgroups: borland.public.cppbuilder.database.ado References: <3dd9d455$1@newsgroups.borland.com> Subject: Re: CoConnection.Create(????) Date: Fri, 22 Nov 2002 21:16:08 +0100 Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 217.121.245.5 Message-ID: <3dde8ecc$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1037995724 217.121.245.5 (22 Nov 2002 12:08:44 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-05!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news-lei1.dfn.de!news-fra1.dfn.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail