typeset.cpp

来自「是关于SQL的一些程序 很好很经典的~大家又兴趣的可以学习下」· C++ 代码 · 共 62 行

CPP
62
字号
// TypeSet.cpp : implementation file
//

#include "stdafx.h"
#include "售货系统.h"
#include "TypeSet.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTypeSet

IMPLEMENT_DYNAMIC(CTypeSet, CRecordset)

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


CString CTypeSet::GetDefaultConnect()
{
	return _T("ODBC;DSN=售货系统");
}

CString CTypeSet::GetDefaultSQL()
{
	return _T("[dbo].[商品类型表]");
}

void CTypeSet::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CTypeSet)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[商品类型名]"), m_column1);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CTypeSet diagnostics

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

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

⌨️ 快捷键说明

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