🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Runtime creating a TQuery.

#2654
From: Gnum
Date: Tue, 06 May 2003 07:44
20 lines
1377 bytes
> class A
> {
>   public:
>     String Mname;
>     void getName(String Mname);
> }
Better use VCL/CLX base
class A : public TObject
to make it compatible with TQuery( TObject* Owner )

or

>   TQuery *temsql = new TQuery();

TQuery *temsql = new TQuery(NULL);

but in this case you should 'delete' your 'temsql' after use in ~A()

Have fun!
Gnum
Technical Details
Message-ID: <3eb76808@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3eb4ddd8@newsgroups.borland.com> <3eb5eab5@newsgroups.borland.com> <3eb65e1a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,ffdba3bfc4818637
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-05-06 00:52:11 PST
From: "Gnum" <mail@oscreator.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3eb4ddd8@newsgroups.borland.com> <3eb5eab5@newsgroups.borland.com> <3eb65e1a@newsgroups.borland.com>
Subject: Re: Runtime creating a TQuery.
Date: Tue, 6 May 2003 14:44:38 +0700
Lines: 22
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.118.74.9
Message-ID: <3eb76808@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052207112 217.118.74.9 (6 May 2003 00:45:12 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail