1 ipeanalyzer3::startimportfile, Parameters, Return values – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual
Page 31: Remarks, Example, Ipeanalyzer3* poanalyzer, Ipeanalyzer3::startimportfile

Teledyne LeCroy
Automation API for PETracer/PETrainer
26
3.4.1 IPEAnalyzer3::StartImportFile
HRESULT StartImportFile ( [in] BSTR file_name )
Begins process of importing specified file into a trace file.
Parameters
file_name
String providing the full pathname to the import file
Return values
S_OK
Import started successfully
S_FALSE
Error starting import
Remarks
The format of the import file is defined in a proprietary Teledyne LeCroy specification. Please contact Teledyne
LeCroy PSG for details.
Example
C++:
IPEAnalyzer3* poAnalyzer;
. . .
HRESULT hr;
try
{
hr = poAnalyzer->StartImportFile( szFileName );
}
catch ( _com_error& er)
{
if (er.Description().length() > 0)
::MessageBox( NULL, er.Description(), _T("PETracer client"), MB_OK );
else
::MessageBox( NULL, er.ErrorMessage(), _T("PETracer client"), MB_OK );
return 1;
}