DELIB API reference |
Seite
55
5.2.2. DapiGetLastErrorText
Description
This function reads the text of the last registered error. If an error has occurred,
it must be cleared with DapiClearLastError(), otherwise every call of
DapiGetLastErrorText() returns the "old" error.
Definition
ULONG DapiGetLastErrorText(unsigned char * msg, unsigned long msg_length);
Parameters
msg = text buffer
msg_length = length of the buffer
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 ...