[Lazarus-es] registerclass, error

Paola Bruccoleri pbruccoleri en adinet.com.uy
Vie Abr 15 21:35:43 CEST 2011


Hola a todos..

tengo un form editpaises...

type

   { TEditPaises }

   TEditPaises = class(TForm)
     BitBtn1: TBitBtn;
     BitBtn2: TBitBtn;
     DBEdit1: TDBEdit;
     Label1: TLabel;
   private
     { private declarations }
   public
     { public declarations }
   end;


ahora, en el form principal de la aplicación, en el evento oncreate, 
intento registrar esta clase:

   RegisterClass(TEditPaises);

y obtengo el error:
frmMain.pas(192,28) Error: Incompatible type for arg no. 1: Got "Class 
Of TEditPaises", expected "WNDCLASS"


alguna idea?
Intento con esto crear un form sabiendo su nombre de clase (que está en 
un string)

chauuuuuuuuu





More information about the Lazarus-es mailing list