studentSet.cpp
资源名称:一个学生管理系统.rar [点击查看]
上传用户:hzzhuce
上传日期:2013-04-01
资源大小:1289k
文件大小:1k
源码类别:
SQL Server
开发平台:
Visual C++
- // studentSet.cpp : implementation of the CStudentSet class
- //
- #include "stdafx.h"
- #include "student.h"
- #include "studentSet.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CStudentSet implementation
- IMPLEMENT_DYNAMIC(CStudentSet, CRecordset)
- CStudentSet::CStudentSet(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CStudentSet)
- m_column1 = 0;
- m_column2 = _T("");
- m_column3 = 0;
- m_column4 = 0;
- m_column5 = 0;
- m_nFields = 5;
- //}}AFX_FIELD_INIT
- m_nDefaultType = dynaset;
- }
- CString CStudentSet::GetDefaultConnect()
- {
- return _T("ODBC;DSN=score");
- }
- CString CStudentSet::GetDefaultSQL()
- {
- return _T("[二班]");
- }
- void CStudentSet::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CStudentSet)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Long(pFX, _T("[学号]"), m_column1);
- RFX_Text(pFX, _T("[姓名]"), m_column2);
- RFX_Long(pFX, _T("[数学]"), m_column3);
- RFX_Long(pFX, _T("[语文]"), m_column4);
- RFX_Long(pFX, _T("[英语]"), m_column5);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CStudentSet diagnostics
- #ifdef _DEBUG
- void CStudentSet::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CStudentSet::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG