📄 myrecordset.cpp
字号:
// MyRecordset.cpp : implementation file
//
#include "stdafx.h"
#include "tbvc.h"
#include "MyRecordset.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyRecordset
IMPLEMENT_DYNAMIC(CMyRecordset, CRecordset)
CMyRecordset::CMyRecordset(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CMyRecordset)
m_name = _T("");
m_age = 0;
m_sex = _T("");
m_telphone = _T("");
m_pager = _T("");
m_mobile = _T("");
m_email = _T("");
m_company = _T("");
m_address = _T("");
m_position = _T("");
m_friendship = _T("");
m_introduction = _T("");
m_nFields = 12;
//}}AFX_FIELD_INIT
//m_nDefaultType = snapshot;
}
void CMyRecordset::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CMyRecordset)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[name]"), m_name);
RFX_Int(pFX, _T("[age]"), m_age);
RFX_Text(pFX, _T("[sex]"), m_sex);
RFX_Text(pFX, _T("[telphone]"), m_telphone);
RFX_Text(pFX, _T("[pager]"), m_pager);
RFX_Text(pFX, _T("[mobile]"), m_mobile);
RFX_Text(pFX, _T("[email]"), m_email);
RFX_Text(pFX, _T("[company]"), m_company);
RFX_Text(pFX, _T("[address]"), m_address);
RFX_Text(pFX, _T("[position]"), m_position);
RFX_Text(pFX, _T("[friendship]"), m_friendship);
RFX_Text(pFX, _T("[introduction]"), m_introduction);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CMyRecordset diagnostics
#ifdef _DEBUG
void CMyRecordset::AssertValid() const
{
CRecordset::AssertValid();
}
void CMyRecordset::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -