Teledyne-lecroy FireInspector Automation Application Programming I Manuel d'utilisateur Page 67

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 92
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 66
63
FireInspector Automation User’s Manual
CATC Version 1.0
2.6.2 IAnalyzerErrors::get_Count
Retrieves the number of Analyzer errors. Use IAnalyzerErrors::get_Item to retrieve the
actual errors.
Syntax
HRESULT get_Count(
[out, retval] long* number_of_errors );
Parameters
number_of_errorspoints to long value where number of elements in the
collection is retrieved
Return values
Remarks
Example
WSH:
C++:
IFwTrace* fw_trace;
. . .
IAnalyzerErrors* analyzer_errors;
try
{
analyzer_errors =
fw_trace->AnalyzerErrors(error_type).Detach();
}
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;
}
TCHAR all_errors[2048];
_stprintf( all_errors, _T("Errors: ") );
try
{
long errors_count = analyzer_errors->GetCount();
long analyzer_error;
if ( !errors_count )
{
_tcscat( all_errors, _T("none") );
}
for ( long i=0; i<errors_count && i<2048/32; i++ )
Vue de la page 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 ... 91 92

Commentaires sur ces manuels

Pas de commentaire