Actions

Difference between revisions of "Error"

From XnView Wiki

(Created page with '== gflGetErrorString == The gflGetErrorString function returns a null-terminated string that contains the error string. const char* gflGetErrorString(  GFL_ERROR error …')
 
Line 3: Line 3:
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* gflGetErrorString(
  const char* <b>gflGetErrorString</b>(
&nbsp;GFL_ERROR error
  GFL_ERROR error
  );
  );



Revision as of 14:17, 23 September 2009

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.