home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / CATALG.PAK / COLUMNST.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.5 KB  |  54 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-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 CColumns : public CRecordset
  20. {
  21. DECLARE_DYNAMIC(CColumns)
  22.  
  23. public:
  24.     CColumns(CDatabase* pDatabase = NULL);
  25.     BOOL Open(UINT nOpenType = snapshot, LPCSTR lpszSQL = NULL, DWORD dwOptions = none);
  26.  
  27. // Field/Param Data
  28.     //{{AFX_FIELD(CColumns, CRecordset)
  29.     CString m_strQualifier;
  30.     CString m_strOwner;
  31.     CString m_strTableName;
  32.     CString m_strColumnName;
  33.     int  m_nDataType;
  34.     CString m_strTypeName;
  35.     long m_lPrecision;
  36.     long m_lLength;
  37.     int m_nScale;
  38.     int m_nRadix;
  39.     int m_nNullable;
  40.     //}}AFX_FIELD
  41.  
  42.     // Table we're enumerating columns for
  43.     CString m_strQualifierParam;
  44.     CString m_strOwnerParam;
  45.     CString m_strTableNameParam;
  46.     CString m_strColumnNameParam;
  47.  
  48. // Implementation
  49. protected:
  50.     virtual CString GetDefaultConnect();    // default connection string
  51.     virtual CString GetDefaultSQL();    // default SQL for Recordset
  52.     virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  53. };
  54.