newObjects-logo.gif (1024 bytes) ScriptManager2 reference
IDispatch* SCPHOSTCLNT::GetScriptDispatch();

Obtains IDispatch pointer to the running script. Returns NULL if failed.



Caller must release the obtained pointer if it is not NULL. Use with DISPCALLER or some class implementing smart pointers in order to avoid reference counting errors.

See also:

Script Manager2 script property

newObjects Copyright newObjects 2001-2005