www.pudn.com > lhwy_odbc2.zip > lhwySet.cpp, change:2002-10-19,size:1372b


// lhwySet.cpp : implementation of the CLhwySet class 
// 
 
#include "stdafx.h" 
#include "lhwy.h" 
#include "lhwySet.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CLhwySet implementation 
 
IMPLEMENT_DYNAMIC(CLhwySet, CRecordset) 
 
CLhwySet::CLhwySet(CDatabase* pdb) 
	: CRecordset(pdb) 
{ 
	//{{AFX_FIELD_INIT(CLhwySet) 
	m_column1 = 0; 
	m_column2 = _T(""); 
	m_column3 = 0; 
	m_column4 = 0; 
	m_nFields = 4; 
	//}}AFX_FIELD_INIT 
	m_nDefaultType = snapshot; 
} 
 
CString CLhwySet::GetDefaultConnect() 
{ 
	return _T("ODBC;DSN=not"); 
} 
 
CString CLhwySet::GetDefaultSQL() 
{ 
	return _T("[fen]"); 
} 
 
void CLhwySet::DoFieldExchange(CFieldExchange* pFX) 
{ 
	//{{AFX_FIELD_MAP(CLhwySet) 
	pFX->SetFieldType(CFieldExchange::outputColumn); 
	RFX_Long(pFX, _T("[Ρ§ΊΕ]"), m_column1); 
	RFX_Text(pFX, _T("[ΠΥΓϋ]"), m_column2); 
	RFX_Long(pFX, _T("[ΚύΡ§]"), m_column3); 
	RFX_Long(pFX, _T("[ΣΆΣο]"), m_column4); 
	//}}AFX_FIELD_MAP 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CLhwySet diagnostics 
 
#ifdef _DEBUG 
void CLhwySet::AssertValid() const 
{ 
	CRecordset::AssertValid(); 
} 
 
void CLhwySet::Dump(CDumpContext& dc) const 
{ 
	CRecordset::Dump(dc); 
} 
#endif //_DEBUG