Difference between revisions of "Error"
From XnView Wiki
Line 1: | Line 1: | ||
== gflGetErrorString == | |||
The gflGetErrorString function returns a null-terminated string that contains the error string. | The gflGetErrorString function returns a null-terminated string that contains the error string. | ||
const char* | const char* <b>gflGetErrorString</b>( | ||
GFL_ERROR error | GFL_ERROR error | ||
); | ); | ||
Line 39: | Line 39: | ||
[[Category: GFLSDK Reference Manual]] | [[Category: GFLSDK Reference Manual]] | ||
Latest revision as of 15:25, 22 November 2010
gflGetErrorString
The gflGetErrorString function returns a null-terminated string that contains the error string.
const char* gflGetErrorString( GFL_ERROR error );
Parameters
- error
GFL_NO_ERROR 0 No error GFL_ERROR_FILE_OPEN 1 File open error GFL_ERROR_FILE_READ 2 File read error GFL_ERROR_FILE_CREATE 3 File create error GFL_ERROR_FILE_WRITE 4 File write error GFL_ERROR_NO_MEMORY 5 No more memory GFL_ERROR_UNKNOWN_FORMAT 6 Unknown format GFL_ERROR_BAD_BITMAP 7 The format doesn't permit to save this type of picture GFL_ERROR_BAD_FORMAT_INDEX 10 Bad picture format GFL_ERROR_BAD_PARAMETERS 50 Bad parameters GFL_UNKNOWN_ERROR 255 Other error
Return value
- The function returns a null-terminated string that contains the error string.