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

  1. // columnst.h : interface of the CColumns class
  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. /////////////////////////////////////////////////////////////////////////////
  14.  
  15. #ifndef __AFXWIN_H__
  16.     #error include 'stdafx.h' before including this file for PCH
  17. #endif
  18.  
  19. class CColumns : public CRecordset
  20. {
  21. DECLARE_DYNAMIC(CColumns)
  22.  
  23. public:
  24.     CColumns(CDatabase* pDatabase = NULL);
  25.     BOOL Open(UINT nOpenType = forwardOnly, LPCSTR lpszSQL = NULL,
  26.         DWORD dwOptions = readOnly);
  27.  
  28. // Field/Param Data
  29.     //{{AFX_FIELD(CColumns, CRecordset)
  30.     CString m_strQualifier;
  31.     CString m_strOwner;
  32.     CString m_strTableName;
  33.     CString m_strColumnName;
  34.     int  m_nDataType;
  35.     CString m_strTypeName;
  36.     long m_lPrecision;
  37.     long m_lLength;
  38.     int m_nScale;
  39.     int m_nRadix;
  40.     int m_nNullable;
  41.     //}}AFX_FIELD
  42.  
  43.     // Table we're enumerating columns for
  44.     CString m_strQualifierParam;
  45.     CString m_strOwnerParam;
  46.     CString m_strTableNameParam;
  47.     CString m_strColumnNameParam;
  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.