英语出题及判分系统Set.cpp
上传用户:z_mail1980
上传日期:2007-06-01
资源大小:647k
文件大小:2k
- // 英语出题及判分系统Set.cpp : implementation of the CMySet class
- //
- #include "stdafx.h"
- #include "英语出题及判分系统.h"
- #include "英语出题及判分系统Set.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CMySet implementation
- IMPLEMENT_DYNAMIC(CMySet, CRecordset)
- CMySet::CMySet(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CMySet)
- m_tihao = 0;
- m_Topic = _T("");
- m_Answer1 = _T("");
- m_Answer2 = _T("");
- m_Answer3 = _T("");
- m_Answer4 = _T("");
- m_FinAnswer = _T("");
- m_nFields = 7;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString CMySet::GetDefaultConnect()
- {
- return _T("ODBC;DSN=英语出题及判分系统");
- }
- CString CMySet::GetDefaultSQL()
- {
- return _T("[选择题数据表]");
- }
- void CMySet::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CMySet)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Int(pFX, _T("[tihao]"), m_tihao);
- RFX_Text(pFX, _T("[Topic]"), m_Topic);
- RFX_Text(pFX, _T("[Answer1]"), m_Answer1);
- RFX_Text(pFX, _T("[Answer2]"), m_Answer2);
- RFX_Text(pFX, _T("[Answer3]"), m_Answer3);
- RFX_Text(pFX, _T("[Answer4]"), m_Answer4);
- RFX_Text(pFX, _T("[FinAnswer]"), m_FinAnswer);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMySet diagnostics
- #ifdef _DEBUG
- void CMySet::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CMySet::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG