uerrecordset.cpp
来自「关于学生信息管理系统的一个小程序,适合用与应付实习,供大家使用!」· C++ 代码 · 共 66 行
CPP
66 行
// UerRecordset.cpp : implementation file
//
#include "stdafx.h"
#include "20028324.h"
#include "UerRecordset.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CUerRecordset
IMPLEMENT_DYNAMIC(CUerRecordset, CRecordset)
CUerRecordset::CUerRecordset(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CUerRecordset)
m_user = _T("");
m_psw = _T("");
m_authority = _T("");
m_nFields = 3;
//}}AFX_FIELD_INIT
m_nDefaultType = dynaset;
}
CString CUerRecordset::GetDefaultConnect()
{
return _T("ODBC;DSN=DataBase");
}
CString CUerRecordset::GetDefaultSQL()
{
return _T("[user]");
}
void CUerRecordset::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CUerRecordset)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[user]"), m_user);
RFX_Text(pFX, _T("[psw]"), m_psw);
RFX_Text(pFX, _T("[authority]"), m_authority);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CUerRecordset diagnostics
#ifdef _DEBUG
void CUerRecordset::AssertValid() const
{
CRecordset::AssertValid();
}
void CUerRecordset::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?