📄 setfile.cpp
字号:
// SetFile.cpp : implementation file
//
#include "stdafx.h"
#include "ccams.h"
#include "SetFile.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSetFile
IMPLEMENT_DYNAMIC(CSetFile, CRecordset)
CSetFile::CSetFile(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CSetFile)
m_client = _T("");
m_time = _T("");
m_action = _T("");
m_path = _T("");
m_nFields = 4;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CSetFile::GetDefaultConnect()
{
return _T("ODBC;DSN=CCAMS");
}
CString CSetFile::GetDefaultSQL()
{
return _T("[file]");
}
void CSetFile::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CSetFile)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[client]"), m_client);
RFX_Text(pFX, _T("[time]"), m_time);
RFX_Text(pFX, _T("[action]"), m_action);
RFX_Text(pFX, _T("[path]"), m_path);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CSetFile diagnostics
#ifdef _DEBUG
void CSetFile::AssertValid() const
{
CRecordset::AssertValid();
}
void CSetFile::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -