home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / odbcinfo / catsets.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  1KB  |  49 lines

  1. // catsets.h
  2.  
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #ifndef CATSETS_H
  14. #define CATSETS_H
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CGetTypeInfo - results from SQLGetTypeInfo()
  18.  
  19. class CGetTypeInfo : public CRecordset
  20. {
  21.     virtual CString GetDefaultConnect() { return ""; }
  22.     virtual CString GetDefaultSQL() { return ""; }
  23.  
  24. public:
  25.                     CGetTypeInfo(CDatabase* pDatabase);
  26.     BOOL            Open(short fSqlType = SQL_ALL_TYPES,
  27.                          UINT  nOpenType = forwardOnly);
  28.  
  29.     CString         m_strTypeName;
  30.     int             m_fDataType;
  31.     long            m_nPrecision;
  32.     CString         m_strLiteralPrefix;
  33.     CString         m_strLiteralSuffix;
  34.     CString         m_strCreateParams;
  35.     int             m_fNullable;
  36.     BOOL            m_bCaseSensitive;
  37.     int             m_fSearchable;
  38.     int             m_fUnsignedAttribute;
  39.     BOOL            m_bMoney;
  40.     int             m_fAutoIncrement;
  41.     CString         m_strLocalTypeName;
  42.     int             m_nMinimumScale;
  43.     int             m_nMaximumScale;
  44.  
  45.     virtual void    DoFieldExchange(CFieldExchange*);
  46. };
  47.  
  48. #endif
  49.