DataBaseSet.h
上传用户:y440e3
上传日期:2010-03-08
资源大小:200k
文件大小:1k
- #if !defined(AFX_DATABASESET_H__2E69F1D4_2188_11D3_B434_CAB6E5000000__INCLUDED_)
- #define AFX_DATABASESET_H__2E69F1D4_2188_11D3_B434_CAB6E5000000__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // DataBaseSet.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CDataBaseSet recordset
- class CDataBaseSet : public CRecordset
- {
- public:
- CDataBaseSet(CDatabase* pDatabase = NULL);
- DECLARE_DYNAMIC(CDataBaseSet)
- protected:
- CString m_strCondition[30]; //用来存储查询条件,可以最多存储30个查询条件
- short m_NumbStr; //存储的查询条件的数目
- public:
- BOOL AddStr(CString m_str);
- BOOL ModifyStr(int Index,CString m_str);
- BOOL DeleteStr(int Index);
- BOOL GetStr(int Index,CString& m_str);
- // Field/Param Data
- //{{AFX_FIELD(CDataBaseSet, CRecordset)
- //}}AFX_FIELD
- virtual int GetID()=0;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDataBaseSet)
- //}}AFX_VIRTUAL
- // Implementation
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DATABASESET_H__2E69F1D4_2188_11D3_B434_CAB6E5000000__INCLUDED_)