Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== ConnectObject ====== Method of [[:scripting:api:wscript:start|IWScript]] ===== Description ===== Connects the object's event sources to functions with a given prefix ===== Parameters ===== * [[scripting:api:data-type:IDispatch|IDispatch]] **pobjEventSource** * [[scripting:api:data-type:BSTR|BSTR]] **strPrefix** ===== Syntax ===== ==== JavaScript ==== <code javascript> WScript.ConnectObject(pobjEventSource, strPrefix); </code>==== Visual Basic Script ==== <code vb> WScript.ConnectObject pobjEventSource, strPrefix </code>==== C++ ==== <code cpp> HRESULT hr = WScript.ConnectObject(pobjEventSource, strPrefix); </code>===== See Also ===== [[:scripting:api:wscript:start|IWScript]] ~~NOTOC~~