char *GetRS232ErrorString (int errorNum);
Converts the error number returned by an RS-232 Library function into a meaningful error message.
If errorNum is -1 (Unknown System Error), GetRS232ErrorString calls the Windows SDK GetLastError function and translates the return value to a Windows message string.
| Input | ||
| Name | Type | Description |
| errorNum | integer | Error code returned by an RS-232 Library function. |
| Name | Type | Description |
| message | string | The meaningful error message for the error number. |