🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Create a TADOQuery without a TForm

#1903
From: Arnie Mauer
Date: Thu, 15 Jan 2004 20:07
21 lines
1528 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: <4006f2ac$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <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:40 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:07:00 -0500
Lines: 24
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: <4006f2ac$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074197164 24.151.21.222 (15 Jan 2004 12:06:04 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail