Home |
Function RTFErrorMessage Function RTFSetDefaultOpenFlags Function RTFSetCriticalErrorHandler |
Function RTFErrorMessageRTFErrorMessage returns a pointer to a message describing an RTFiles-32 error code: const char * RTFErrorMessage(int ErrorCode); ParametersErrorCodeMust be a negative error code returned by a previous RTFiles-32 native API call. This function always succeeds. If the parameter specifies an invalid error code or a positive value, the returned string will indicate this. Example:RTFHANDLE Handle; Handle = RTFOpen("somefile", 0); if (Handle < RTF_NO_ERROR) printf("Unable to open file, reason: %s\n", RTFErrorMessage(Handle)); else { RTFRead(Handle,...); ... RTFClose(Handle); } Function RTFSetDefaultOpenFlags
|