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

📄 picrecord.cpp

📁 无线图象监控系统(用VC++编程)用数据库ACCESS存储图象
💻 CPP
字号:
// Picrecord.cpp : implementation file
//

#include "stdafx.h"
#include "MoinorCentre.h"
#include "Picrecord.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPicrecord

IMPLEMENT_DYNAMIC(CPicrecord, CDaoRecordset)

CPicrecord::CPicrecord(CDaoDatabase* pdb)
	: CDaoRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CPicrecord)
	m_DateAndTime = (DATE)0;
	m_picturepath = _T("");
	m_picdescribe = _T("");
	m_picleng = 0;
	m_picsize = _T("");
	m_boatdetect = 0;
	m_happening = _T("");
	m_nFields = 11;
	//}}AFX_FIELD_INIT
	m_nDefaultType = dbOpenDynaset;
}


CString CPicrecord::GetDefaultDBName()
{
	return _T("H:\\毕业设计\\MoinorCentre\\port.mdb");
}

CString CPicrecord::GetDefaultSQL()
{
	return _T("[Site0]");
}

void CPicrecord::DoFieldExchange(CDaoFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CPicrecord)
	pFX->SetFieldType(CDaoFieldExchange::outputColumn);
	DFX_DateTime(pFX, _T("[DateAndTime]"), m_DateAndTime);
	DFX_Text(pFX, _T("[picturepath]"), m_picturepath);
	DFX_Text(pFX, _T("[picdescribe]"), m_picdescribe);
	DFX_Long(pFX, _T("[picleng]"), m_picleng);
	DFX_Text(pFX, _T("[picsize]"), m_picsize);
	DFX_Binary(pFX, _T("[dct]"), m_dct);
	DFX_Binary(pFX, _T("[shape]"), m_shape);
	DFX_Binary(pFX, _T("[color]"), m_color);
	DFX_Binary(pFX, _T("[texture]"), m_texture);
	DFX_Long(pFX, _T("[boatdetect]"), m_boatdetect);
	DFX_Text(pFX, _T("[happening]"), m_happening);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CPicrecord diagnostics

#ifdef _DEBUG
void CPicrecord::AssertValid() const
{
	CDaoRecordset::AssertValid();
}

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

⌨️ 快捷键说明

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