On Mon, 3 Apr 2006 14:43:27 -0300
Roberto Antonio Berrospe Machin <[EMAIL PROTECTED]> wrote:

> Hi.
> I used to develop with LCL and now im going to start again; but even  
> with a simple test it dont work anymore for me? here's atached the  
> test im doing, the way i used to develop, i need something like that  
> coding style to not to change all my sources... is that way not  
> posible anymore?
> 
> The error i get is:
> 
> Free Pascal Compiler version 2.1.1 [2006/03/30] for powerpc
> Copyright (c) 1993-2005 by Florian Klaempfl
> Target OS: Darwin for PowerPC
> Compiling tests.pas
> tests.pas(12,2) Note: APPTYPE is not supported by the target OS
> tests.pas(50,23) Error: Incompatible types: got "Pointer" expected  
> "<procedure variable type of procedure(TObject) of object;StdCall>"
> tests.pas(70) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> Error: /Users/MetalFishX/Temp/BTP/bin/ppcppc returned an error  
> exitcode (normal if you did not specify a source file to be compiled)
> 
> Is there a way to solve that?
> 
> Thanks a lot!!!

- You write @Button1_OnClick. Good, this is clean free pascal syntax, so you
don't need all the compiler directives.
You only need {$mode objfpc}{$H+}.
- BUTTONS1.OnClick expects a method. Instead of Button1_OnClick it expects
something like FormClass.Button1_OnClick.

Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to