⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reportrec.cpp

📁 几个老外写的源代码大家块块下载
💻 CPP
字号:
// ReportRec.cpp : implementation file
//

#include "stdafx.h"
#include "SerObjDoc.h"

#include "SerObj.h"
#include "ReportRec.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CReportRec

IMPLEMENT_DYNAMIC(CReportRec, CRecordset)

CReportRec::CReportRec(long nSize, CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CReportRec)
	m_ReportId = _T("");
	m_DocSize = 0;
	m_nFields = 3;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
	
	//** The size of the Byte array can't be 0
	//** 255 is the default size 
	m_nSize = nSize == 0 ? 255 : nSize;
	
	m_DocumentContents.SetSize( m_nSize );
}

void CReportRec::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CReportRec)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[ReportId]"), m_ReportId);
	RFX_Binary(pFX, _T("[DocumentContents]"), m_DocumentContents, m_nSize ); 
	RFX_Long(pFX, _T("[DocSize]"), m_DocSize);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CReportRec diagnostics

#ifdef _DEBUG
void CReportRec::AssertValid() const
{
	CRecordset::AssertValid();
}

void CReportRec::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -