CreateInstance
Connecting to a third-party Windows program through the OLE mechanism using the CreateInstance function.
Call:
int iret = ts_idispatch(int iIDispatchApp,"CreateInstance",string appclassname, string runcontext);
Here:
iIDispatchApp - descriptor of the ts_idispatch object where the created program object will be placed;
appclassname - class name of the program object ("Excel.Application" - for Excel);
runcontext - object placement context.
Value |
Meaning |
"REMOTE_SERVER" |
Application running on server |
"LOCAL_SERVER" |
Application running on local machine |
"ALL" |
Any deployment |