lnetpackage - AddEventHandler lazarus / 8-Other ---------------------------------------------------------------------- Anonymous · 2006-01-07 09:49 Hi! I'm trying to install the lnetpackage, and i get this error: C:\lazarus\components\lnetpackage\lclsocketwin32.inc(24,11) Error: Identifier not found "AddEventHandler" C:\lazarus\components\lnetpackage\lclsocketwin32.inc(24,75) Error: Illegal expression C:\lazarus\components\lnetpackage\lclsocketwin32.inc(51,3) Error: Identifier not found "RemoveEventHandler" C:\lazarus\components\lnetpackage\lclsocketwin32.inc(51,30) Error: Illegal expression C:\lazarus\components\lnetpackage\LCLNet.pas(63) Fatal: There were 4 errors compiling module, stopping I saw this about the "AddEventHandler" function in WIKI Lazarus doc: AddEventHandler Declaration Source position: lclintfh.inc line 40 procedure AddEventHandler(   AHandle: THandle;   AFlags: dword;   AEventHandler: TWaitHandleEvent;   AData: PtrInt ); There is not any AddEventHandler function In my LCLIntfh.inc Where can i get the good version of LCLInth.inc ? I have Lazarus 0.9.10beta. Mammuth ---------------------------------------------------------------------- Vincent Snijders · 2006-01-07 10:12 From svn. ---------------------------------------------------------------------- Anonymous · 2006-01-08 00:18 Thx For The Tipp! Mammuth ---------------------------------------------------------------------- Anonymous · 2006-01-08 00:40 This is hard for me I get this message now : C:\lazarus\lcl\include\lclintfh.inc(40,10) Error: Forward declaration not solved "TWidgetSet.AddEventHandler(LongWord, LongWord, TWaitHandleEvent, LongInt):^untyped" C:\lazarus\lcl\include\lclintfh.inc(41,10) Error: Forward declaration not solved "TWidgetSet.AddProcessEventHandler(LongWord, TChildExitEvent, LongInt):^untyped" C:\lazarus\lcl\include\lclintfh.inc(42,10) Error: Forward declaration not solved "TWidgetSet.AddPipeEventHandler(LongWord, TPipeEvent, LongInt):^untyped" C:\lazarus\lcl\include\lclintfh.inc(110,11) Error: Forward declaration not solved "TWidgetSet.RemoveEventHandler(PEventHandler)" C:\lazarus\lcl\include\lclintfh.inc(111,11) Error: Forward declaration not solved "TWidgetSet.RemoveProcessEventHandler(PProcessEventHandler)" C:\lazarus\lcl\include\lclintfh.inc(112,11) Error: Forward declaration not solved "TWidgetSet.RemovePipeEventHandler(PPipeEventHandler)" C:\lazarus\lcl\include\lclintfh.inc(120,11) Error: Forward declaration not solved "TWidgetSet.SetEventHandlerFlags(PEventHandler, LongWord)" C:\lazarus\lcl\InterfaceBase.pp(36,69) Hint: Unit "LMessages" not used in InterfaceBase C:\lazarus\lcl\InterfaceBase.pp(127) Fatal: There were 7 errors compiling module, stopping I'm at the end ---------------------------------------------------------------------- Anonymous · 2006-01-08 09:46 This is known. Due to new requirements of the upcoming 0.3 lNet there were some changes in LCL event handling API which brake any older code dependent on it. I'm sorry for the trouble. lNet 0.3 should be out within few days but if you're in a hurry I'd suggest using older version (1 week should suffice) of Lazarus for now. ---------------------------------------------------------------------- Anonymous · 2006-01-08 10:34 Thank You for the information! I can wait for the new version Mammuth