🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #162

Re: MDI Parent and Scroll Bars - Peter Below's code won't compile!

#162
From: Sasan Adami
Date: Mon, 26 Jan 2004 20:38
17 lines
1765 bytes
Brad Miller wrote:
> {!!!!!THIS LINE IS GETTING FLAGGED AS ERROR!!!!!}
>      SetWindowLong( ClientHandle, GWL_USERDATA,
>                     SetWindowLong( ClientHandle, GWL_WNDPROC,
>                                    integer( @ClientWindowProc)));
> {!!!!!ERROR BEING REPORTED IS "Variable Required"!!!!!}
> As shown in the code above, I'm getting an error when attempting to
> compile this in D5. I've tried a couple of things to make it happy, but
> so far to no avail. Any ideas? Should this compile in D5? Compiler
> switch that might be messing it up? This is on XP Professional.

Compiles fine here.
How did you declare ClientWindowProc? Make sure it is declared above the
other function and that it is *not* declared as a member of your form.
It should be declared as a standalone function.

Sasan.
Technical Details
Message-ID: <40157AE3.C8EFFC13@no.spam.gmx.net>
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: <4015601e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,8ff3524931d7799a
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-01-26 12:40:37 PST
Message-ID: <40157AE3.C8EFFC13@no.spam.gmx.net>
Date: Mon, 26 Jan 2004 21:38:59 +0100
From: Sasan Adami <s.adami@no.spam.gmx.net>
X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.delphi.nativeapi
Subject: Re: MDI Parent and Scroll Bars - Peter Below's code won't compile!
References: <4015601e@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.234.25.144
X-Trace: newsgroups.borland.com 1075149541 62.234.25.144 (26 Jan 2004 12:39:01 -0700)
Lines: 17
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