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