📄 pswdset.cpp
字号:
// PswdSet.h : CPswdSet 类的实现
// CPswdSet 实现
// 代码生成在 2005年12月29日, 1:15
#include "stdafx.h"
#include "PswdSet.h"
IMPLEMENT_DYNAMIC(CPswdSet, CRecordset)
CPswdSet::CPswdSet(CDatabase* pdb)
: CRecordset(pdb)
{
column1 = L"";
column2 = L"";
m_nFields = 2;
m_nDefaultType = snapshot;
}
//#error Security Issue: The connection string may contain a password
// 此连接字符串中可能包含密码
// 下面的连接字符串中可能包含明文密码和/或
// 其他重要信息。请在查看完
// 此连接字符串并找到所有与安全有关的问题后移除 #error。可能需要
// 将此密码存储为其他格式或使用其他的用户身份验证。
CString CPswdSet::GetDefaultConnect()
{
return _T("ODBC;DSN=Management");
}
CString CPswdSet::GetDefaultSQL()
{
return _T("[用户登录]");
}
void CPswdSet::DoFieldExchange(CFieldExchange* pFX)
{
pFX->SetFieldType(CFieldExchange::outputColumn);
// RFX_Text() 和 RFX_Int() 这类宏依赖的是
// 成员变量的类型,而不是数据库字段的类型。
// ODBC 尝试自动将列值转换为所请求的类型
RFX_Text(pFX, _T("[用户名]"), column1);
RFX_Text(pFX, _T("[密码]"), column2);
}
/////////////////////////////////////////////////////////////////////////////
// CPswdSet 诊断
#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 + -