Teledyne-lecroy FireInspector Automation Application Programming I Bedienungsanleitung Seite 67

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 92
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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++ )
Seitenansicht 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 ... 91 92

Kommentare zu diesen Handbüchern

Keine Kommentare