🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Runtime creating a TQuery.

#2646
From: Ken
Date: Mon, 05 May 2003 12:50
43 lines
1767 bytes
Hi Gnum,

This is what I have done:

class A
{
  public:
    String Mname;
    void getName(String Mname);
}

A::getName(String Mname)
{
  TQuery *temsql = new TQuery();
  ....
  ....
}

The compiler give the following error:
E2285 Could not find a match for 'TQuery::TQuery()'

Hope you can give me some advise, thanks and best regards.
Ken Choo


"Gnum" <mail@oscreator.com> wrote in message
news:3eb5eab5@newsgroups.borland.com...
> > I'm creating an Object that require to access database, I try
> > TQuery *temsql = new TQuery();
>
> __fastcall virtual TQuery(Classes::TComponent* AOwner);
>
> > But this code does not work, can anyone show me how to create a TQuery
in
> > runtime.
>
>
> Strange things... My works...
> How did you see it doesn't work?
>
> Gnum
>
>
Technical Details
Message-ID: <3eb65e1a@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.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eb4ddd8@newsgroups.borland.com> <3eb5eab5@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-05 05:59:51 PST
Reply-To: "Ken" <ken@kjfriends.com>
From: "Ken" <ken@kjfriends.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3eb4ddd8@newsgroups.borland.com> <3eb5eab5@newsgroups.borland.com>
Subject: Re: Runtime creating a TQuery.
Date: Mon, 5 May 2003 20:50:28 +0800
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 210.24.224.24
Message-ID: <3eb65e1a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052139034 210.24.224.24 (5 May 2003 05:50:34 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail