📄 log.cpp
字号:
// Log.cpp : implementation file
//
#include "stdafx.h"
#include "连接.h"
#include "Log.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Log
IMPLEMENT_DYNAMIC(Log, CRecordset)
Log::Log(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(Log)
m_column1 = 0;
m_column2 = _T("");
m_nFields = 2;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString Log::GetDefaultConnect()
{
return _T("ODBC;DSN=MS Access Database");
}
CString Log::GetDefaultSQL()
{
return _T("[Logon]");
}
void Log::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(Log)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Long(pFX, _T("[编号]"), m_column1);
RFX_Text(pFX, _T("[密码]"), m_column2);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// Log diagnostics
#ifdef _DEBUG
void Log::AssertValid() const
{
CRecordset::AssertValid();
}
void Log::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
BOOL Log::Requery()
{
// TODO: Add your specialized code here and/or call the base class
return CRecordset::Requery();
}
BOOL Log::Open(UINT nOpenType, LPCTSTR lpszSql, DWORD dwOptions)
{
// TODO: Add your specialized code here and/or call the base class
return CRecordset::Open(nOpenType, lpszSql, dwOptions);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -