CRasterImage::GetLastErrorMessage

char* GetLastErrorMessage ( void );

Return Value

Pointer to string containing message which describes last error which occurred in CRasterImage object. Do not store this pointer because next error might invalidate it. Returned pointer is guaranteed as valid till next call to any another method of CRasterImage object.

Remarks

This method is available from ClassGL version 3.1

Example

CRasterImage   RasterImage;
if ( ! RasterImage.Load( “Image.jpg” ) )
  printf( “Error loading ‘Image.jpg’ file\n%s\n”, RasterImage.GetLastErrorMessage() );

See Also

SetCompressQuality