DELIB API reference |
Seite
54
5.2. Error handling
5.2.1. DapiGetLastError
Description
This function returns the last registered error. If an error has occurred, it must be
deleted with DapiClearLastError(), otherwise any call of DapiGetLastError() will
return the "old" error.
If multiple modules are used, the use of DapiGetLastErrorByHandle() is
recommended.
Definition
ULONG DapiGetLastError();
Parameters
None
Return value
Error code
0=no error. (see delib_error_codes.h)
Example program
BOOL IsError()
{
unsigned char msg[500];
unsigned long error_code = DapiGetLastError();
if (error_code != DAPI_ERR_NONE)
{
DapiGetLastErrorText((unsigned char*) msg, sizeof(msg));
printf("Error Code = 0x%x * Message = %s\n", error_code, msg);
DapiClearLastError();
return TRUE;
}
return FALSE;
}
Summary of Contents for ETH-TTL-64
Page 1: ...Hardware Description Juli ETH TTL 64 2019 ...
Page 5: ...I Introduction Seite 5 Introduction ...
Page 7: ...II Hardware description Seite 7 Hardware description ...
Page 13: ...Hardware description Seite 13 2 4 Overview screen ETH TTL 64 ...
Page 17: ...Hardware description Seite 17 problem is solved ...
Page 19: ...III Software Seite 19 Software ...
Page 29: ...Software Seite 29 Choose the option create VIs for DLL and press continue ...
Page 39: ...Software Seite 39 ...
Page 40: ...IV Hardware Seite 40 Hardware ...
Page 46: ...Hardware Seite 46 Geben Sie hier den Text ein ...
Page 47: ...V DELIB API reference Seite 47 DELIB API reference ...
Page 79: ...VI Appendix Seite 79 Appendix ...