Returns current error information.
Syntax
intl DlErrorGet (DlId hLib , char *msg , char *detail )
Arguments
hLib
Handle for current instance of Demographics Library, as returned by DlInit. Input
*msg
The basic explanation for error. Can be up to 256 characters long. Output
*detail
The particulars of an error, such as file name. Can be up to 256 characters long. Output
Note: Both msg and detail can return up to 256 bytes of data. Buffers for these
items should always be 256 bytes or larger.
Return Value
TRUE if an error exists, else FALSE.
Notes
DlErrorGet returns the error message and detail information for the most recent Demographics Library error.
Example
// This example retrieves the last error information
char ErrorMsg[256], ErrorDetail[256];
DlErrorGet(hLib, ErrorMsg, ErrorDetail);
printf("An error has occurred: %s, %s", ErrorMsg, ErrorDetail);