Connects to the given COM server and returns the IDispatch pointer of the server. The server is started if necessary. If the call succeeds, the object reference count of the COM server is incremented.
This is equivalent to the VB CreateObject() call.
COM_connectServer_ ( serverName As String, _ Optional reuseID As String = "", _ Optional onExitProperty As String = "", _ Optional autoRelease? As Boolean = True ) As User
Argument | Type | Description |
---|---|---|
serverName | String | ProgID string . Examples of some ProgIDs are: "Excel.Application" "Inventor.Application" Please see the relevant documentation on the COM model for your specific COM server. |
reuseID | String | Optional; obsolete; default is "". |
onExitProperty | String | Optional; obsolete; default is "". |
autoRelease? | Boolean | Optional; if True this decrements the server's reference count when the COM server is released; default is True . |