Converts error codes returned by various APIs in the WinGP SDK into error messages.
EasyLoadErrorMessage() returns multi-byte text (ASCII) as a message.
EasyLoadErrorMessageW() returns a UNICODE text string
Function Name
BOOL WINAPI EasyLoadErrorMessage(INT iErrorCode,LPSTR osErrorMessage);
BOOL WINAPI EasyLoadErrorMessageW(INT iErrorCode,LPWSTR owsErrorMessage);
Argument
iErrorCode: (In) Error code returned by the WinGP SDK function
osErrorMessage: (Out) Pointer to the area where the converted string (ASCII) is stored (prepare for 512 bytes or more.)
osErrorMessage: (Out) Pointer to the area where the converted string (UNICODE) is stored (prepare for 1024 bytes or more.)
Return value (NULL)
Successful operation: Any value other than zero
Failed to convert string (for example, unused error code): 0
Special Item
This API is provided to enable compatibility with Pro-Server with Studio.
EasyLoadErrorMessageEx() converts errors into an error message with more details.