Attach events of the external COM-object from WSC component 
Author Message
 Attach events of the external COM-object from WSC component

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



Mon, 10 May 2004 20:15:43 GMT  
 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



Tue, 11 May 2004 05:50:48 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. pass a COM object reference to a WSC component

2. REQ: SMTP COM component that can rewrite Content-Type header and attach files w/o encoding

3. ATL COM Component firing events into VBScript event sink

4. Need to Access ASP Session Objects from External COM Object

5. Using WScript object in WSC components

6. How to get COM component events in ASP

7. Help: Attaching an event to an ActiveX Object

8. Returning an object with sub objects from vb component (COM) to ASP

9. External COM Objects

10. start an external program (no COM object)

11. Passing optional object arguments from COM components

12. COM-Object in ASP with COM-Object as parameter

 

 
Powered by phpBB® Forum Software