www.pudn.com > dataCS.rar > SuperServerSet.cpp


// SuperServerSet.cpp : implementation of the CSuperServerSet class 
// 
 
#include "stdafx.h" 
#include "SuperServer.h" 
#include "SuperServerSet.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CSuperServerSet implementation 
 
IMPLEMENT_DYNAMIC(CSuperServerSet, CDaoRecordset) 
 
CSuperServerSet::CSuperServerSet(CDaoDatabase* pdb) 
	: CDaoRecordset(pdb) 
{ 
	//{{AFX_FIELD_INIT(CSuperServerSet) 
	m_No = 0; 
	m_Name = _T(""); 
	m_Password = _T(""); 
	m_G_ = 0; 
	m_nFields = 4; 
	//}}AFX_FIELD_INIT 
	m_nDefaultType = dbOpenDynaset; 
} 
 
CString CSuperServerSet::GetDefaultDBName() 
{ 
	return _T("Data.mdb"); 
} 
 
 
CString CSuperServerSet::GetDefaultSQL() 
{ 
	return _T("[User]"); 
} 
 
void CSuperServerSet::DoFieldExchange(CDaoFieldExchange* pFX) 
{ 
	//{{AFX_FIELD_MAP(CSuperServerSet) 
	pFX->SetFieldType(CDaoFieldExchange::outputColumn); 
	DFX_Long(pFX, _T("[No]"), m_No); 
	DFX_Text(pFX, _T("[Name]"), m_Name); 
	DFX_Text(pFX, _T("[Password]"), m_Password); 
	DFX_Long(pFX, _T("[G#]"), m_G_); 
	//}}AFX_FIELD_MAP 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CSuperServerSet diagnostics 
 
#ifdef _DEBUG 
void CSuperServerSet::AssertValid() const 
{ 
	CDaoRecordset::AssertValid(); 
} 
 
void CSuperServerSet::Dump(CDumpContext& dc) const 
{ 
	CDaoRecordset::Dump(dc); 
} 
#endif //_DEBUG