home *** CD-ROM | disk | FTP | other *** search
- #ifndef __MYRECORDSET_H__
- #define __MYRECORDSET_H__
-
- // MyRecordset.h : header file
- //
-
- /////////////////////////////////////////////////////////////////////////////
- // CMyRecordset recordset
-
- class CMyRecordset : public CRecordset
- {
- public:
- CString m_sql;
- void SetDefaultSQL(CString& sql);
- CMyRecordset(CDatabase* pDatabase = NULL);
- DECLARE_DYNAMIC(CMyRecordset)
-
- // Field/Param Data
- //{{AFX_FIELD(CMyRecordset, CRecordset)
- long m_ID;
- CString m_Field1;
- //}}AFX_FIELD
-
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyRecordset)
- public:
- virtual CString GetDefaultConnect(); // Default connection string
- virtual CString GetDefaultSQL(); // Default SQL for Recordset
- virtual void DoFieldExchange(CFieldExchange* pFX); // RFX support
- //}}AFX_VIRTUAL
-
- // Implementation
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- };
-
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
- #endif // __MYRECORDSET_H__
-