
Attach events of the external COM-object from WSC component
A WSC doesn't have any native mechanism to sink events of passed object references (in other words, it has no equivalent for WScript.ConnectObject). Static object defined via the <object ...events="yes" /> do support this (well, most do).
ScriptX (www.meadroid.com/scriptx) does have methods that support connecting/disconnecting event sinks. It's in the free subset (no license required).
--
Michael Harris
Microsoft.MVP.Scripting
Quote:
> Hello.
> We are using Windows Scripting Components.
> Please get a sample, how to attach the events of some external object that
> passed to WSC through method parameter.
> WBR
> Alex Tischenko