ImageData.cpp
上传用户:lqt88888
上传日期:2009-12-14
资源大小:905k
文件大小:1k
- // ImageData.cpp : implementation file
- //
- #include "stdafx.h"
- #include "BmpField.h"
- #include "ImageData.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CImageData
- IMPLEMENT_DYNAMIC(CImageData, CDaoRecordset)
- CImageData::CImageData(CDaoDatabase* pdb)
- : CDaoRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CImageData)
- m_ID = 0;
- m_SomeText = _T("");
- m_nFields = 3;
- //}}AFX_FIELD_INIT
- m_nDefaultType = dbOpenDynaset;
- }
- //使用相对路径
- CString CImageData::GetDefaultDBName()
- {
- return _T("BmpField.mdb");
- }
- CString CImageData::GetDefaultSQL()
- {
- return _T("[Table]");
- }
- void CImageData::DoFieldExchange(CDaoFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CImageData)
- pFX->SetFieldType(CDaoFieldExchange::outputColumn);
- DFX_Long(pFX, _T("[ID]"), m_ID);
- DFX_Text(pFX, _T("[SomeText]"), m_SomeText);
- DFX_Binary(pFX, _T("[Images]"), m_Images);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CImageData diagnostics
- #ifdef _DEBUG
- void CImageData::AssertValid() const
- {
- CDaoRecordset::AssertValid();
- }
- void CImageData::Dump(CDumpContext& dc) const
- {
- CDaoRecordset::Dump(dc);
- }
- #endif //_DEBUG