[Lazarus] what is function header problem ?

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed May 28 16:51:01 CEST 2014


FreeMan schrieb:
> I'm trying port some code, I get this error. IDE code complied is work, 
> rename tool working.
> what is wrong?
> Thank you
> Kubuntu 14.04 x64, fpc svn r27818 lazarus svn r45213
> 
> /comp/asg.pas(100,10) Error: function header doesn't match the previous 
> declaration 
> "DrawEx(TCanvas;AnsiString;TRect;TCustomImageList;LongInt;LongInt;LongInt;LongInt;LongInt;Boolean;Boolean;Boolean;Boolean;Boolean;Boolean;Boolean;Boolean;Double;TGraphicsColor;TGraphicsColor;TGraphicsColor;TGraphicsColor;var 
> AnsiString;var AnsiString;var A"

When you override a method in a derived class, the method declaration 
must match the declaration in the *base class* (previous declaration).

DoDi





More information about the Lazarus mailing list