pswdset.cpp

来自「一个通讯录程序」· C++ 代码 · 共 62 行

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

#include "stdafx.h"
#include "Address.h"
#include "PswdSet.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPswdSet

IMPLEMENT_DYNAMIC(CPswdSet, CRecordset)

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


CString CPswdSet::GetDefaultConnect()
{
	return _T("ODBC;DSN=addresslist");
}

CString CPswdSet::GetDefaultSQL()
{
	return _T("[password]");
}

void CPswdSet::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CPswdSet)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[PASSWORD]"), m_PASSWORD);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CPswdSet diagnostics

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

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

⌨️ 快捷键说明

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