Article View: borland.public.cppbuilder.database.ado
Article #1902Re: Create a TADOQuery without a TForm
From: Arnie Mauer
Date: Thu, 15 Jan 2004 20:05
Date: Thu, 15 Jan 2004 20:05
21 lines
1565 bytes
1565 bytes
"Steve Aletto" <steve_alettoANTI@SPAMhotmail.com> wrote in message news:4003e978@newsgroups.borland.com... > > Now I can create a TADOQuery without drag TADOQuery > component on the > > TForm, with the command: > > > > TADOQuery* Query = new TADOQuery(Form1); > > Have you tried the following? > > TADOQuery* Query = new TADOQuery(NULL); > > HTH, > > Steve. ... and delete the query when you're done. If you're going to do a console app (no form), don't forget to call CoInitialize(0) before creating the query and CoUninitialize() before exiting the program. - Arnie
Technical Details
Message-ID:
<4006f2ab$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4002fb57@newsgroups.borland.com> <4003e978@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,e08787740a219ba0 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-01-15 12:10:39 PST From: "Arnie Mauer" <xxx@nowhere.net> Newsgroups: borland.public.cppbuilder.database.ado References: <4002fb57@newsgroups.borland.com> <4003e978@newsgroups.borland.com> Subject: Re: Create a TADOQuery without a TForm Date: Thu, 15 Jan 2004 15:05:27 -0500 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 24.151.21.222 Message-ID: <4006f2ab$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074197163 24.151.21.222 (15 Jan 2004 12:06:03 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail