Teledyne-lecroy FireInspector Automation Application Programming I User Manual Page 25

  • Download
  • Add to my manuals
  • Print
  • Page
    / 92
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 24
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 ob jec t pr imar y
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;
Page view 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 91 92

Comments to this Manuals

No comments