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 / tableset.h < prev   
C/C++ Source or Header  |  1998-03-26  |  1KB  |  48 lines

  1. // tableset.h : interface of the CTables 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 CTables : public CRecordset
  20. {
  21. DECLARE_DYNAMIC(CTables)
  22.  
  23. public:
  24.     CTables(CDatabase* pDatabase = NULL);
  25.     BOOL Open(UINT nOpenType = forwardOnly, LPCSTR lpszSQL = NULL,
  26.         DWORD dwOptions = readOnly);
  27.  
  28. // Field/Param Data
  29.     //{{AFX_FIELD(CTables, CRecordset)
  30.     CString m_strQualifier;
  31.     CString m_strOwner;
  32.     CString m_strName;
  33.     CString m_strType;
  34.     CString m_strRemarks;
  35.     //}}AFX_FIELD
  36.  
  37.     CString m_strQualifierParam;
  38.     CString m_strOwnerParam;
  39.     CString m_strNameParam;
  40.     CString m_strTypeParam;
  41.  
  42. // Implementation
  43. protected:
  44.     virtual CString GetDefaultConnect();    // default connection string
  45.     virtual CString GetDefaultSQL();    // default SQL for Recordset
  46.     virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  47. };
  48.