10 ianalyzer::getrecordingoptions, Ianalyzer::getrecordingoptions – Teledyne LeCroy FireInspector Automation Application Programming Interface User Manual

Page 25

Advertising
background image

21

FireInspector Automation User’s Manual

CATC

Version 1.0

2.3.10 IAnalyzer::GetRecordingOptions

Retrieves primary interface for access to recording options.

Syntax

HRESULT GetRecordingOptions (

[out, retval] IDispatch** recording_options );

Parameters

recording_options

address of a pointer to the

FwRecOptions

object primary

interface

Return values

Remarks

FwRecOptions

object is created via this method call, if call was successful.

Example

WSH:

Set Analyzer = WScript.CreateObject("CATC.FwAnalyzer")

Set RecOptions = Analyzer.GetRecordingOptions

C++:

HRESULT

hr;

IFwAnalyzer*

poFwAnalyzer;

// create FwAnalyzer object

if ( FAILED( CoCreateInstance(

CLSID_FwAnalyzer,

NULL, CLSCTX_SERVER,

IID_IFwAnalyzer,

LPVOID *)&poFwAnalyzer ) )

return;

// open trace file

IDispatch* rec_opt;

try

{

rec_opt = poFwAnalyzer->GetRecordingOptions();

}

catch ( _com_error& er)

{

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

::MessageBox( NULL, er.Description(), _T("FwAnalyzer

client"),MB_OK );

else

::MessageBox( NULL, er.ErrorMessage(), _T("FwAnalyzer

client"),MB_OK );

return 1;

}

// query for VTBL interface

IFwRecOptions* ib_rec_opt;

Advertising