home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / MFCINC.PAK / AFXDB_.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  2.0 KB  |  70 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1995 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_BOOL        1
  30. #define AFX_RFX_BYTE        2
  31. #define AFX_RFX_INT         3
  32. #define AFX_RFX_LONG        4
  33. #define AFX_RFX_SINGLE      6
  34. #define AFX_RFX_DOUBLE      7
  35. #define AFX_RFX_DATE        8
  36. #define AFX_RFX_BINARY      9
  37. #define AFX_RFX_TEXT        10
  38. #define AFX_RFX_LONGBINARY  11
  39. #define AFX_RFX_SHORT       12
  40. #define AFX_RFX_CURRENCY    13
  41.  
  42. //////////////////////////////////////////////////////////////////////////////
  43. // CLongBinary - a Long (generally > 32k in length) Binary object
  44.  
  45. class CLongBinary : public CObject
  46. {
  47.     DECLARE_DYNAMIC(CLongBinary)
  48.  
  49. // Constructors
  50. public:
  51.     CLongBinary();
  52.  
  53. // Attributes
  54.     HGLOBAL m_hData;
  55.     DWORD m_dwDataLength;
  56.  
  57. // Implementation
  58. public:
  59.     virtual ~CLongBinary();
  60.  
  61. #ifdef _DEBUG
  62.     virtual void AssertValid() const;
  63.     virtual void Dump(CDumpContext& dc) const;
  64. #endif //_DEBUG
  65. };
  66.  
  67. //////////////////////////////////////////////////////////////////////////////
  68.  
  69. #endif // __AFXDB__H__
  70.