?? xueji.cpp
字號:
// Xueji.cpp : implementation file
//
#include "stdafx.h"
#include "DATABASE.h"
#include "Xueji.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CXueji
IMPLEMENT_DYNAMIC(CXueji, CRecordset)
CXueji::CXueji(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CXueji)
m_stuid = _T("");
m_native = _T("");
m_reg = _T("");
m_year = 0;
m_type = _T("");
m_birth = _T("");
m_class = _T("");
m_nFields = 7;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CXueji::GetDefaultConnect()
{
return _T("ODBC;DSN=我的數據庫0");
}
CString CXueji::GetDefaultSQL()
{
return _T("[xj]");
}
void CXueji::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CXueji)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[stuid]"), m_stuid);
RFX_Text(pFX, _T("[native]"), m_native);
RFX_Text(pFX, _T("[reg]"), m_reg);
RFX_Int(pFX, _T("[year]"), m_year);
RFX_Text(pFX, _T("[type]"), m_type);
RFX_Text(pFX, _T("[birth]"), m_birth);
RFX_Text(pFX, _T("[class]"), m_class);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CXueji diagnostics
#ifdef _DEBUG
void CXueji::AssertValid() const
{
CRecordset::AssertValid();
}
void CXueji::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -