🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: must take address of a memory location

#1434
From: Viatcheslav V. Vassiliev
Date: Thu, 22 Jul 2004 12:34
48 lines
2638 bytes
When you move cursor and something popups, IDE tries to compile code for
internal purposes (for parsing). E2027 is explained in help as:

Your source file used the address-of operator (&) with an expression that
can't be used that way; for example, a register variable.

Just continue to do what you need and do not look at this popup.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"frankzyz" <frankzyz@etang.com> �������/�������� � �������� ���������:
news:40ff9b5d@newsgroups.borland.com...
> hi,
> I run into a problem that related to bcb6 and adoquery,access datebase.
> I create a form with ide, then put an adoconnection component and an
> adoquery , a Button onto it.
> Then I set the properties of adoconnection to fit the access database,
ie.,
> db1.
> After that I set the properties of adoquery to fit the adoconnection and
add
> SQL String as simple as "select max(f1) as maxn from t1".
> Then add some code to the button:
>
> void __fastcall TForm1::Button3Click(TObject *Sender)
> {
>    Q1->Close();            //add breakpoint here
>    Q1->SQL->Clear();
>    Q1->SQL->Add("select * from t1");
> }
>
> The problem is:
> when the program ran to the breakpoint,I point the mouse to Q1->Close();
> it popup a message : "Q1->Close()=E2027 Must take address of a memory
> location"
> I dont know how to solve the problem and why it arrised.
>
> Thanks in advance !
> Frank
>
>
>
Technical Details
Message-ID: <40ffb43a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!easynews.net!easynet-isham!easynet.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40ff9b5d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,c2e3f8fc4771854c
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40ff9b5d@newsgroups.borland.com>
Subject: Re: must take address of a memory location
Date: Thu, 22 Jul 2004 16:34:01 +0400
Lines: 50
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 213.234.218.42
Message-ID: <40ffb43a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090499642 213.234.218.42 (22 Jul 2004 05:34:02 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!easynews.net!easynet-isham!easynet.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail