home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / SAMPLES / DIBVIEW / ERRORS.H_ / ERRORS.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  2.2 KB  |  42 lines

  1.  
  2. #ifndef ERRORS_INCLUDED
  3. #define ERRORS_INCLUDED
  4.  
  5. enum {
  6.       ERR_MIN = 0,                     // All error #s >= this value
  7.       ERR_NOT_DIB = 0,                 // Tried to load a file, NOT a DIB!
  8.       ERR_MEMORY,                      // Not enough memory!
  9.       ERR_READ,                        // Error reading file!
  10.       ERR_LOCK,                        // Error on a GlobalLock()!
  11.       ERR_OPEN,                        // Error opening a file!
  12.       ERR_CREATEPAL,                   // Error creating palette.
  13.       ERR_GETDC,                       // Couldn't get a DC.
  14.       ERR_CREATECHILD,                 // Error creating MDI child.
  15.       ERR_CREATEDDB,                   // Error create a DDB.
  16.       ERR_STRETCHBLT,                  // StretchBlt() returned failure.
  17.       ERR_STRETCHDIBITS,               // StretchDIBits() returned failure.
  18.       ERR_NODIBORDDB,                  // Error painting -- need BOTH DDB & DIB.
  19.       ERR_SETDIBITSTODEVICE,           // SetDIBitsToDevice() failed.
  20.       ERR_STARTDOC,                    // Error calling StartDoc().
  21.       ERR_NOGDIMODULE,                 // Couldn't find GDI module in memory.
  22.       ERR_SETABORTPROC,                // Error calling SetAbortProc().
  23.       ERR_STARTPAGE,                   // Error calling StartPage().
  24.       ERR_NEWFRAME,                    // Error calling NEWFRAME escape.
  25.       ERR_ENDPAGE,                     // Error calling EndPage().
  26.       ERR_ENDDOC,                      // Error calling EndDoc().
  27.       ERR_ANIMATE,                     // Only one DIB animated @ a time.
  28.       ERR_NOTIMERS,                    // No timers avail for pal animation.
  29.       ERR_NOCLIPWINDOW,                // Now current window for clipboard.
  30.       ERR_CLIPBUSY,                    // Clipboard is busy.
  31.       ERR_NOCLIPFORMATS,               // During paste can't find DIB or DDB.
  32.       ERR_SETDIBITS,                   // Error calling SetDIBits().
  33.       ERR_FILENOTFOUND,                // Error opening file in GetDib()
  34.       ERR_WRITEDIB,                    // Error writing DIB file.
  35.       ERR_MAX                          // All error #s < this value
  36.      };
  37.  
  38.  
  39. void DIBError (int ErrNo);
  40.  
  41. #endif ERRORS_INCLUDED
  42.