home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / mfc / include / afxdb_.h < prev    next >
C/C++ Source or Header  |  1998-06-16  |  2KB  |  75 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. // Do not include this file directly (included by AFXDB.H & AFXDAO.H)
  12.  
  13. #ifndef __AFXDB__H__
  14. #define __AFXDB__H__
  15.  
  16. //////////////////////////////////////////////////////////////////////////////
  17. // Recordset Field exchange for ODBC & DAO classes (RFX_ and DFX_)
  18.  
  19. #define AFX_RFX_SHORT_PSEUDO_NULL (0x7EE4)
  20. #define AFX_RFX_INT_PSEUDO_NULL (0x7EE4)
  21. #define AFX_RFX_LONG_PSEUDO_NULL (0x4a4d4120L)
  22. #define AFX_RFX_BYTE_PSEUDO_NULL 255
  23. #define AFX_RFX_SINGLE_PSEUDO_NULL (-9.123e19f)
  24. #define AFX_RFX_DOUBLE_PSEUDO_NULL (-9.123e19)
  25. #define AFX_RFX_BOOL_PSEUDO_NULL 2
  26. #define AFX_RFX_DATE_PSEUDO_NULL CTime(0)
  27. #define AFX_RFX_TIMESTAMP_PSEUDO_NULL 99
  28.  
  29. #define AFX_RFX_NO_TYPE     0
  30. #define AFX_RFX_BOOL        1
  31. #define AFX_RFX_BYTE        2
  32. #define AFX_RFX_INT         3
  33. #define AFX_RFX_LONG        4
  34. #define AFX_RFX_SINGLE      6
  35. #define AFX_RFX_DOUBLE      7
  36. #define AFX_RFX_DATE        8
  37. #define AFX_RFX_BINARY      9
  38. #define AFX_RFX_TEXT        10
  39. #define AFX_RFX_LONGBINARY  11
  40. #define AFX_RFX_SHORT       12
  41. #define AFX_RFX_CURRENCY    13
  42. #define AFX_RFX_OLEDATETIME 14
  43. #define AFX_RFX_TIMESTAMP   15
  44. #define AFX_RFX_OLEDATE     16
  45. #define AFX_RFX_LPTSTR      17
  46.  
  47. //////////////////////////////////////////////////////////////////////////////
  48. // CLongBinary - a Long (generally > 32k in length) Binary object
  49.  
  50. class CLongBinary : public CObject
  51. {
  52.     DECLARE_DYNAMIC(CLongBinary)
  53.  
  54. // Constructors
  55. public:
  56.     CLongBinary();
  57.  
  58. // Attributes
  59.     HGLOBAL m_hData;
  60.     DWORD m_dwDataLength;
  61.  
  62. // Implementation
  63. public:
  64.     virtual ~CLongBinary();
  65.  
  66. #ifdef _DEBUG
  67.     virtual void AssertValid() const;
  68.     virtual void Dump(CDumpContext& dc) const;
  69. #endif //_DEBUG
  70. };
  71.  
  72. //////////////////////////////////////////////////////////////////////////////
  73.  
  74. #endif // __AFXDB__H__
  75.