Group: ODBC API - Library: odbccp32
How to display a dialog box with which the user can add a data source (DSN)
Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode
RETCODE SQLInstallerError(
WORD iError,
DWORD * pfErrorCode,
LPSTR lpszErrorMsg,
WORD cbErrorMsgMax,
WORD * pcbErrorMsg
);
DECLARE INTEGER SQLInstallerError IN odbccp32;
INTEGER iError,;
INTEGER @ pfErrorCode,;
STRING @ lpszErrorMsg,;
INTEGER cbErrorMsgMax,;
INTEGER @ pcbErrorMsg
iError [Input] Error record number. Valid numbers are from 1 through 8.
pfErrorCode [Output] Installer error code.
lpszErrorMsg [Output] Pointer to storage for the error message text.
cbErrorMsgMax [Input] Maximum length of the szErrorMsg buffer.
cbErrorMsgMax [Input] Maximum length of the szErrorMsg buffer.
pcbErrorMsg [Output] Pointer to the total number of bytes available to return in lpszErrorMsg.
SQL_SUCCESS (0), SQL_SUCCESS_WITH_INFO, SQL_NO_DATA, or SQL_ERROR.