3.40 DM_InstallNlsHandler

This function installs another function which provides texts from message catalogs.

void DML_default DM_EXPORT DM_InstallNlsHandler
(
  DM_NlsFunc func
)

Parameters

-> DM_NlsFunc func

Address of the function that provides texts. It has the following format:

DM_String (DML_default DM_CALLBACK *DM_NlsFunc)

          (DM_Int4 msgno, int *codepage);

The first parameter is the number of the text desired in the row (1 - 65535); the second parameter is a pointer to the desired code page (e.g. CP_ascii, CP_iso8859, etc.).

The function returns the text assigned to the number. If no appropriate text is available, the function may return a NULL pointer.

If the function returns the text in a different code page, the function has to save the used code page in *codepage.

See Also

Resource text