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

  1. // coursset.h : header file
  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. // CCourseSet recordset
  15.  
  16. class CCourseSet : public CRecordset
  17. {
  18. public:
  19.     CCourseSet(CDatabase* pDatabase);
  20.     DECLARE_DYNAMIC(CCourseSet)
  21.  
  22. // Field/Param Data
  23.     //{{AFX_FIELD(CCourseSet, CRecordset)
  24.     CString m_CourseID;
  25.     CString m_CourseTitle;
  26.     int     m_Hours;
  27.     //}}AFX_FIELD
  28.  
  29.  
  30. // Overrides
  31.     // ClassWizard generate virtual function overrides
  32.     //{{AFX_VIRTUAL(CCourseSet)
  33.     public:
  34.     virtual CString GetDefaultConnect();    // Default connection string
  35.     virtual CString GetDefaultSQL();    // Default SQL for Recordset
  36.     virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  37.     //}}AFX_VIRTUAL
  38.  
  39. // Implementation
  40. #ifdef _DEBUG
  41.     virtual void AssertValid() const;
  42.     virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44. };
  45.