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

  1. // sectset.h : interface of the CSectionSet 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. class CSectionSet : public CRecordset
  14. {
  15. DECLARE_DYNAMIC(CSectionSet)
  16.  
  17. public:
  18.     CSectionSet(CDatabase* pDatabase = NULL);
  19.     CSectionSet::~CSectionSet();
  20.  
  21. // Field/Param Data
  22.     //{{AFX_FIELD(CSectionSet, CRecordset)
  23.     CString m_CourseID;
  24.     CString m_SectionNo;
  25.     CString m_InstructorID;
  26.     CString m_RoomNo;
  27.     CString m_Schedule;
  28.     int m_Capacity;
  29.     //}}AFX_FIELD
  30.     CString m_strCourseIDParam;
  31.  
  32. // Attributes
  33.     // Late bound field info
  34.     CStringList m_listName;
  35.     CStringList m_listValue;
  36.  
  37. // Operations
  38.     // Late bind to a text field
  39.     void AddTextField(CString& strName);
  40.  
  41.     // Find an output field by name
  42.     BOOL FindField(const char *);
  43.  
  44. // Implementation
  45. protected:
  46.     virtual CString GetDefaultConnect();    // Default connection string
  47.     virtual CString GetDefaultSQL();    // default SQL for Recordset
  48.     virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  49. };
  50.