📄 dictset.cpp
字号:
// dictSet.cpp : implementation of the CDictSet class
//
#include "stdafx.h"
#include "dict.h"
#include "dictSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDictSet implementation
IMPLEMENT_DYNAMIC(CDictSet, CRecordset)
CDictSet::CDictSet(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CDictSet)
m_word = _T("");
m_translate = _T("");
m_sentence = _T("");
m_nFields = 3;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CDictSet::GetDefaultConnect()
{
return _T("ODBC;DSN=data1");
}
CString CDictSet::GetDefaultSQL()
{
return _T("[dict]");
}
void CDictSet::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CDictSet)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[word]"), m_word);
RFX_Text(pFX, _T("[translate]"), m_translate);
RFX_Text(pFX, _T("[sentence]"), m_sentence);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CDictSet diagnostics
#ifdef _DEBUG
void CDictSet::AssertValid() const
{
CRecordset::AssertValid();
}
void CDictSet::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -