cff.cpp
上传用户:yhxbjx
上传日期:2018-11-07
资源大小:7142k
文件大小:1k
- // cff.cpp : implementation file
- //
- #include "stdafx.h"
- #include "课程设计.h"
- #include "cff.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // cff
- IMPLEMENT_DYNAMIC(cff, CRecordset)
- cff::cff(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(cff)
- m_administrator = _T("");
- m_secrect = _T("");
- m_nFields = 2;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString cff::GetDefaultConnect()
- {
- return _T("ODBC;DSN=resource");
- }
- CString cff::GetDefaultSQL()
- {
- return _T("[管理员密码表]");
- }
- void cff::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(cff)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Text(pFX, _T("[administrator]"), m_administrator);
- RFX_Text(pFX, _T("[secrect]"), m_secrect);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // cff diagnostics
- #ifdef _DEBUG
- void cff::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void cff::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG