Board index » delphi » Assigning a COM event handler - help
John Fallows
![]() Delphi Developer |
Sat, 31 Jan 2004 01:07:03 GMT
Assigning a COM event handler - help
Apologies. My news client inadvertantly said my previous posting was from
"Borland". Sigh. I have now fixed this. ======================================== I have a form which contains a callback from an in-process server. There will be multiple instances of this form in the program, so I cannot implement the callback code in the event handler class, but want to map the event handler to a method in the form object. This results in a "not enough actual parameters" error. Advise please? Here is an extract of the relevant code: TEventHandlerA = class(TAutoIntfObject, IFooEvents) TFormA = class(TForm) TFormA.Create(Sender:TObject); TFormA.UpdateA(Value: Integer);safecall; HELP! |