IActveScript and events of run-time object
COM
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, I have a really difficult problem. I have an MFC application that hosts scripts via IActveScript engine. Inside the script I have created a COM object that exposes some events. The very same object is correctly used in a regular vbs scipt host by WSH:
Dim obj Set obj = CreateObject ("cnitfc.myobj") wscript.ConnectObject obj, "myobj_" Sub myobj_Event (nParam) msgbox "event fired" End Sub
and myobj_Eventis is invoked when myobj fires "Event" event. How to implement the very same "ConnectObject" method that is built-in into wscript object? Thanks a lot in advance. Regards, Andrea :^)