home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / oledb / tablecopy / error.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-12  |  1.2 KB  |  38 lines

  1. //-----------------------------------------------------------------------------
  2. // Microsoft OLE DB TABLECOPY Sample
  3. // Copyright (C) 1995-1998 Microsoft Corporation
  4. //
  5. // @doc
  6. //
  7. // @module ERROR.H
  8. //
  9. //-----------------------------------------------------------------------------
  10. #ifndef _ERROR_H_
  11. #define _ERROR_H_
  12.  
  13.  
  14. ///////////////////////////////////////////////////////////////
  15. // Includes
  16. //
  17. ///////////////////////////////////////////////////////////////
  18. #include "common.h"
  19.  
  20.  
  21.  
  22. ////////////////////////////////////////////////////////////////////////////
  23. // Extened Error Info
  24. //
  25. ////////////////////////////////////////////////////////////////////////////
  26. WCHAR* GetErrorName(HRESULT hr);
  27.  
  28. //Get ISQLErrorInfo
  29. HRESULT GetSqlErrorInfo(ULONG iRecord, IErrorRecords* pIErrorRecords, BSTR* pBstr);
  30.  
  31. //Get IErrorRecords
  32. HRESULT GetErrorRecords(ULONG* pcRecords, IErrorRecords** ppIErrorRecords);
  33. HRESULT DisplayErrorRecords(HWND hWnd, ULONG cRecords, IErrorRecords* pIErrorRecords, WCHAR* pwszFile = L"Unknown", ULONG ulLine = 0);
  34.  
  35. HRESULT DisplayAllErrors(HWND hWnd, HRESULT hr, WCHAR* pwszFile = L"Unknown", ULONG ulLine = 0);
  36.  
  37. #endif    //_ERROR_H_
  38.