home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / sql / dblib / c / textcopy / textcopy.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-03  |  854 b   |  24 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. //  FILE: textcopy.h
  4. //              
  5. //      Header for text and image copy application
  6. //
  7. //  COMMENTS:
  8. //
  9. ///////////////////////////////////////////////////////////////////////////////
  10.  
  11. // function prototypes
  12. int Cleanup (PDBPROCESS);
  13. extern "C" int ErrorHandler (PDBPROCESS, INT, INT, INT, LPCSTR, LPCSTR);
  14. extern "C" int MessageHandler (PDBPROCESS, DBINT, INT, INT, LPCSTR, LPCSTR, LPCSTR, DBUSMALLINT);
  15. int DisplayUsage (void);
  16.  
  17. #define D(a) if (bDebug) { cout << dbg; (a); }
  18.  
  19. const char* const err = "ERROR: ";
  20. const char* const dbg = "  debug: ";
  21.  
  22. inline void cinstr (CString& s, int n) { cin.getline (s.GetBuffer (n), n); s.ReleaseBuffer(); };
  23. inline void cinstr (CString& s) { cin.getline (s.GetBuffer (100), 100); s.ReleaseBuffer(); };
  24.