|
// SimpleAppDoc.cpp : implementation of the CSimpleAppDoc class
//
#include "stdafx.h"
#include "SimpleApp.h"
#include "SimpleAppDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CSimpleAppDoc
IMPLEMENT_DYNCREATE(CSimpleAppDoc, CDocument)
BEGIN_MESSAGE_MAP(CSimpleAppDoc, CDocument)
END_MESSAGE_MAP()
// CSimpleAppDoc construction/destruction
CSimpleAppDoc::CSimpleAppDoc()
{
// TODO: add one-time construction code here
}
CSimpleAppDoc::~CSimpleAppDoc()
{
}
BOOL CSimpleAppDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
// CSimpleAppDoc serialization
void CSimpleAppDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
int* p = NULL;
*p = 13;
}
else
{
// TODO: add loading code here
}
}
// CSimpleAppDoc diagnostics
#ifdef _DEBUG
void CSimpleAppDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CSimpleAppDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// CSimpleAppDoc commands
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a software developer currently living in Tomsk, Russia. I received a PhD degree in Computer Science from Tomsk Polytechnic University in 2010. I have been professionally developing C/C++ and PHP software since 2005. I like contributing to open-source and writing programming articles for popular web resources, like CodeProject. Besides writing, I love skiing and watching Formula-1.