[lazarus] FPC Request
Shane Miller
SMiller1 at stvgb.org
Fri Oct 22 16:38:54 EDT 1999
I tried -Sd instead of -S2 and it still didn't work.
I sent my code in an email (mwedit code) so take a look at mwcustomedit.pas
You'll have to remove one of the {$IFDEF MWE_FPC} to make it fail.
I do a
ppc386 -S2 mwcustomedit.pas
or a
ppc386 -Sd mwcustomedit.pas
and get the same error.
Somewhere around line 896 is a {$IFDEF} you can remove..
Shane
>>> <michael at tfdec1.fys.kuleuven.ac.be> 10/22/99 03:11PM >>>
On Fri, 22 Oct 1999, Shane Miller wrote:
> Here's another one. When assigning a TNotifyEvent to a procedure like
>
> OnCLick := Button1Click;
>
> FPC returns an error
> Wrong Amout of parameters specified.
>
> The way you fix it is to do a
>
> OnCLick := @Button1Click;
This is only true if you use -S2. If you use -Sd, it should
accept the
OnCLick := Button1Click;
form also. Or, if you use the directives, you should do a
{$mode delphi}
instead of
{$mode objfpc}
Michael.
_________________________________________________________________
To unsubscribe: mail lazarus-request at miraclec.com with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus
More information about the Lazarus
mailing list