1 ianalyzeradapter interface, 1 ianalyzeradapter::createobject, Parameters – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual
Page 145: Return values, Remarks, Example, Sub btnconnect_onclick, Ianalyzeradapter interface, Ianalyzeradapter::createobject

Teledyne LeCroy
Automation API for PETracer/PETrainer
140
12.1 IAnalyzerAdapter Interface
12.1.1 IAnalyzerAdapter::CreateObject
HRESULT CreateObject (
[in] BSTR class_id,
[in, optional] BSTR host_name,
[out, retval] IDispatch** ppNewObj )
This method instantiates the LeCroy analyzer object on a local or remote machine and attaches it to the
adapter.
Parameters
class_id
String representation of classid or ProgId (clsid:297CD804-08F5-4A4F-
B3BA-779B2654B27C or CATC.PETracer for PEAnalyzer object)
host_name
Network name of the remote server where the analyzer object should be
instantiated. Empty value means local host.
ppNewObj
Pointer to the created remote object, NULL if the object has not been
instantiated or accessed.
Return values
Remarks
Only Teledyne LeCroy analyzer COM servers can be instantiated through this method. The method
Detach, below, should be called when the work with the remote object is completed.
NOTE: The pointer returned in ppNewObj should be released separately.
Example
VBScript:
...