beautypg.com

Teledyne LeCroy UWBTracer Automation Manual User Manual

Page 16

background image

LeCroy

UWBTracer Automation API Reference Manual

Manual Version 3.02

12

Example


VBScript:

RUNAT=Server
ID = Analyzer
CLASSID = "clsid:7A4ECA40-E668-11D4-9B7C-000102566088"

>

... ...
... ...


C++:

IUwbAnalyzer* uwb_analyzer;
BSTR ro_file_name;

. . .

try
{

uwb_analyzer->StartRecording( ro_file_name )

}
catch (_com_error& er)
{

if (er.Description().length() > 0)

::MessageBox( NULL, er.Description(), _T("UWBAnalyzer client"), MB_OK );

else

::MessageBox( NULL, er.ErrorMessage(), _T("UWBAnalyzer client"), MB_OK );

return 1;

}