upassword.cpp

来自「计算机管理系统可以实现开机时自动运行」· C++ 代码 · 共 66 行

CPP
66
字号
// upassword.cpp : implementation file
//

#include "stdafx.h"
#include "System.h"
#include "upassword.h"

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

/////////////////////////////////////////////////////////////////////////////
// upassword

IMPLEMENT_DYNAMIC(upassword, CRecordset)

upassword::upassword(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(upassword)
	m_usno = _T("");
	m_uname = _T("");
	m_upassword = _T("");
	m_nFields = 3;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
}


CString upassword::GetDefaultConnect()
{
	return _T("ODBC;DSN=regsystem");
}

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

void upassword::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(upassword)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[usno]"), m_usno);
	RFX_Text(pFX, _T("[uname]"), m_uname);
	RFX_Text(pFX, _T("[upassword]"), m_upassword);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// upassword diagnostics

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

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

⌨️ 快捷键说明

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