ralationship.cpp

来自「单片机gsm模块」· C++ 代码 · 共 64 行

CPP
64 行
字号
// RalationShip.cpp : implementation file
//

#include "stdafx.h"
#include "smstest.h"
#include "RalationShip.h"

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

/////////////////////////////////////////////////////////////////////////////
// CRalationShip

IMPLEMENT_DYNAMIC(CRalationShip, CRecordset)

CRalationShip::CRalationShip(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CRalationShip)
	m_Name = _T("");
	m_Ph_No = _T("");
	m_nFields = 2;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
}


CString CRalationShip::GetDefaultConnect()
{
	return _T("ODBC;DSN=Mydb1");
}

CString CRalationShip::GetDefaultSQL()
{
	return _T("[No_Man]");
}

void CRalationShip::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CRalationShip)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[Name]"), m_Name);
	RFX_Text(pFX, _T("[Ph_No]"), m_Ph_No);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CRalationShip diagnostics

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

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

⌨️ 快捷键说明

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