loginset.cpp
来自「本系统采用小型数据库管理系统中优秀的软件“Visual C++ 6.0” 作为系」· C++ 代码 · 共 64 行
CPP
64 行
// LoginSet.cpp : implementation file
//
#include "stdafx.h"
#include "salarly.h"
#include "LoginSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLoginSet
IMPLEMENT_DYNAMIC(CLoginSet, CRecordset)
CLoginSet::CLoginSet(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CLoginSet)
m_name = _T("");
m_passwd = _T("");
m_nFields = 2;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CLoginSet::GetDefaultConnect()
{
return _T("ODBC;DSN=salary");
}
CString CLoginSet::GetDefaultSQL()
{
return _T("[登录]");
}
void CLoginSet::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CLoginSet)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[name]"), m_name);
RFX_Text(pFX, _T("[passwd]"), m_passwd);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CLoginSet diagnostics
#ifdef _DEBUG
void CLoginSet::AssertValid() const
{
CRecordset::AssertValid();
}
void CLoginSet::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?