alteradpaset.cpp
来自「计算机管理系统可以实现开机时自动运行」· C++ 代码 · 共 64 行
CPP
64 行
// alteradpaset.cpp : implementation file
//
#include "stdafx.h"
#include "System.h"
#include "alteradpaset.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// alteradpaset
IMPLEMENT_DYNAMIC(alteradpaset, CRecordset)
alteradpaset::alteradpaset(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(alteradpaset)
m_administrator = _T("");
m_apassword = _T("");
m_nFields = 2;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString alteradpaset::GetDefaultConnect()
{
return _T("ODBC;DSN=regsystem");
}
CString alteradpaset::GetDefaultSQL()
{
return _T("[administrator]");
}
void alteradpaset::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(alteradpaset)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[administrator]"), m_administrator);
RFX_Text(pFX, _T("[apassword]"), m_apassword);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// alteradpaset diagnostics
#ifdef _DEBUG
void alteradpaset::AssertValid() const
{
CRecordset::AssertValid();
}
void alteradpaset::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?