⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customset.cpp

📁 利用odbc编程实现以下功能: 航班
💻 CPP
字号:
// customset.cpp : implementation file
//

#include "stdafx.h"
#include "dbexe.h"
#include "customset.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Ccustomset

IMPLEMENT_DYNAMIC(Ccustomset, CRecordset)

Ccustomset::Ccustomset(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(Ccustomset)
	m_custname = _T("");
	m_nFields = 1;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
}


CString Ccustomset::GetDefaultConnect()
{
	return _T("ODBC;DSN=database1");
}

CString Ccustomset::GetDefaultSQL()
{
	return _T("[customers]");
}

void Ccustomset::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(Ccustomset)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[custname]"), m_custname);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// Ccustomset diagnostics

#ifdef _DEBUG
void Ccustomset::AssertValid() const
{
	CRecordset::AssertValid();
}

void Ccustomset::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -