DlErrorGet - demographics_library - 2024.01

Demographics Library Reference for Windows and UNIX

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > Demographics Library
Version
2024.01
Language
English
Product name
Demographics Library
Title
Demographics Library Reference for Windows and UNIX
Copyright
2024
First publish date
1994
Last updated
2024-05-17
Published on
2024-05-17T02:16:20.391253

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);