home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / STDREG.PAK / TYPEINFO.H < prev   
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.6 KB  |  55 lines

  1. // typeinfo.h : interface of the CTypeInfo class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 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. /////////////////////////////////////////////////////////////////////////////
  14.  
  15. #ifndef __AFXWIN_H__
  16.     #error include 'stdafx.h' before including this file for PCH
  17. #endif
  18.  
  19. class CTypeInfo : public CRecordset
  20. {
  21. DECLARE_DYNAMIC(CTypeInfo)
  22.  
  23. public:
  24.     CTypeInfo(CDatabase* pDatabase = NULL);
  25.     BOOL Open(UINT nOpenType = snapshot, LPCSTR lpszSQL = NULL, DWORD dwOptions = none);
  26.  
  27. // Field/Param Data
  28.     //{{AFX_FIELD(CTypeInfo, CRecordset)
  29.     CString m_strTypeName;
  30.     int m_nDataType;
  31.     long m_lPrecision;
  32.     CString m_strLiteralPrefix;
  33.     CString m_strLiteralSuffix;
  34.     CString m_strCreateParams;
  35.     int m_nNullable;
  36.     int m_nCaseSensitive;
  37.     int m_nSearchable;
  38.     int m_nUnsignedAttribute;
  39.     int m_nMoney;
  40.     int m_nAutoIncrement;
  41.     CString m_strLocalTypeName;
  42.     int m_nMinimumScale;
  43.     int m_nMaximumScale;
  44.     //}}AFX_FIELD
  45.  
  46.     // SQL data type for which we're querying SQLGetTypeInfo
  47.     SWORD m_fSqlTypeParam;
  48.  
  49. // Implementation
  50. protected:
  51.     virtual CString GetDefaultConnect();    // default connection string
  52.     virtual CString GetDefaultSQL();    // default SQL for Recordset
  53.     virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  54. };
  55.