allindexrst.cpp
来自「《Visual C++经典编程大全》配套代码」· C++ 代码 · 共 66 行
CPP
66 行
// AllIndexRst.cpp : implementation file
//
#include "stdafx.h"
#include "NServer.h"
#include "AllIndexRst.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAllIndexRst
IMPLEMENT_DYNAMIC(CAllIndexRst, CRecordset)
CAllIndexRst::CAllIndexRst(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CAllIndexRst)
m_IndexType = 0;
m_IndexValue = 0;
m_IndexDesc = _T("");
m_nFields = 3;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CAllIndexRst::GetDefaultConnect()
{
return _T("ODBC;DSN=AppConnt");
}
CString CAllIndexRst::GetDefaultSQL()
{
return _T("[dbo].[FAllIndex]");
}
void CAllIndexRst::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CAllIndexRst)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Long(pFX, _T("[IndexType]"), m_IndexType);
RFX_Long(pFX, _T("[IndexValue]"), m_IndexValue);
RFX_Text(pFX, _T("[IndexDesc]"), m_IndexDesc);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CAllIndexRst diagnostics
#ifdef _DEBUG
void CAllIndexRst::AssertValid() const
{
CRecordset::AssertValid();
}
void CAllIndexRst::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?