beautypg.com

Catc ver. 1.40 – Teledyne LeCroy Automation API for Bluetooth Analyzers User Manual

Page 75

background image

69

Automation API for CATC Bluetooth Analyzers

CATC

Ver. 1.40

}

for ( long i=0; i

{

analyzer_error = analyser_errors->GetItem(i);

TCHAR cur_error[32];

_stprintf( cur_error, _T(" %ld"), analyzer_error );

_tcscat( all_errors, cur_error );

}

if ( i>2048/32 )

_tcscat( all_errors, _T(" ...") );

}

catch ( _com_error& er)

{

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

::MessageBox( NULL, er.Description(), _T("BTAnalyzer client"),

MB_OK );

else

::MessageBox( NULL, er.ErrorMessage(),_T("BTAnalyzer client"),

MB_OK );

return 1;

}

analyser_errors->Release();

::SetWindowText( m_hwndStatus, all_errors );