topical media & game development
basic-program-solutions-19-Ch19-Soln-2-DBSampleDoc.c
? /
basic-program-solutions-19-Ch19-Soln-2-DBSampleDoc.c
// DBSampleDoc.cpp : implementation of the CDBSampleDoc class
//
include <stdafx.h>
include <DBSample.h>
include <ProductSet.h>
include <DBSampleDoc.h>
ifdef _DEBUG
define new DEBUG_NEW
endif
// CDBSampleDoc
IMPLEMENT_DYNCREATE(CDBSampleDoc, CDocument)
BEGIN_MESSAGE_MAP(CDBSampleDoc, CDocument)
END_MESSAGE_MAP()
// CDBSampleDoc construction/destruction
CDBSampleDoc::CDBSampleDoc()
{
// TODO: add one-time construction code here
}
CDBSampleDoc::~CDBSampleDoc()
{
}
BOOL CDBSampleDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
// CDBSampleDoc diagnostics
ifdef _DEBUG
void CDBSampleDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CDBSampleDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
endif //_DEBUG
// CDBSampleDoc commands
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.