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

📄 pswdset.cpp

📁 我自己写的一个通讯录的程序,用ODBC来连接数据库. 可以查找,添加,删除,和修改记录,并显示数据库中人所有记录. 登录程序的默认密码为空,可以在程序中修改.
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -