CServerFrameSet.cpp
上传用户:bsw_2008
上传日期:2013-07-09
资源大小:2446k
文件大小:1k
- // CServerFrameSet.cpp : implementation of the CCServerFrameSet class
- //
- #include "stdafx.h"
- #include "CServerFrame.h"
- #include "CServerFrameSet.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CCServerFrameSet implementation
- IMPLEMENT_DYNAMIC(CCServerFrameSet, CRecordset)
- CCServerFrameSet::CCServerFrameSet(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CCServerFrameSet)
- m_name = _T("");
- m_code = _T("");
- m_sex = _T("");
- m_score = 0;
- m_nFields = 4;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString CCServerFrameSet::GetDefaultConnect()
- {
- return _T("ODBC;DSN=zhou");
- }
- CString CCServerFrameSet::GetDefaultSQL()
- {
- return _T("[dbo].[user_message]");
- }
- void CCServerFrameSet::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CCServerFrameSet)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Text(pFX, _T("[name]"), m_name);
- RFX_Text(pFX, _T("[code]"), m_code);
- RFX_Text(pFX, _T("[sex]"), m_sex);
- RFX_Long(pFX, _T("[score]"), m_score);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CCServerFrameSet diagnostics
- #ifdef _DEBUG
- void CCServerFrameSet::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CCServerFrameSet::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG