?? stumoreset.cpp
字號:
// stumoreSet.cpp : implementation file
//
#include "stdafx.h"
#include "biyesheji.h"
#include "stumoreSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CstumoreSet
IMPLEMENT_DYNAMIC(CstumoreSet, CRecordset)
CstumoreSet::CstumoreSet(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CstumoreSet)
m_fathername = _T("");
m_mothername = _T("");
m_htelephone = _T("");
m_mtelephone = _T("");
m_haddress = _T("");
m_youbian = _T("");
m_shengyuan = _T("");
m_mecit = _T("");
m_studentid = 0;
m_nFields = 9;
//}}AFX_FIELD_INIT
m_nDefaultType = dynaset;
}
CString CstumoreSet::GetDefaultConnect()
{
return _T("ODBC;DSN=biyesheji");
}
CString CstumoreSet::GetDefaultSQL()
{
return _T("[more]");
}
void CstumoreSet::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CstumoreSet)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[fathername]"), m_fathername);
RFX_Text(pFX, _T("[mothername]"), m_mothername);
RFX_Text(pFX, _T("[htelephone]"), m_htelephone);
RFX_Text(pFX, _T("[mtelephone]"), m_mtelephone);
RFX_Text(pFX, _T("[haddress]"), m_haddress);
RFX_Text(pFX, _T("[youbian]"), m_youbian);
RFX_Text(pFX, _T("[shengyuan]"), m_shengyuan);
RFX_Text(pFX, _T("[mecit]"), m_mecit);
RFX_Long(pFX, _T("[studentid]"), m_studentid);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CstumoreSet diagnostics
#ifdef _DEBUG
void CstumoreSet::AssertValid() const
{
CRecordset::AssertValid();
}
void CstumoreSet::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -