COM can call my program? Event Handler.
Posted on 1998-09-15
Using the COM interface that I imported, I can set properties and call functions, but now I need the COM thing to call my program at certain events. I don't know how much I need to include, but if you want more points I can certainly be generous because I'd like a quick *complete* answer.
I imported the type library and everything works fine. The handler that I'd like to implement is:
IEICUserWatcher = interface(IDispatch)
procedure StatusChanged(const p_NewStatus: WideString; p_UntilDateTime: TDateTime); safecall;
procedure UserChanged; safecall;
If I try to do this
UserWatcher := CoUserWatcher.Create;
it tells me class is not registered.
The help file says that I need to implement this in my client application, but I obviously don't know how.
Any suggestions are welcome.