// ProjectDoc.cpp : implementation file // #include "stdafx.h" #include "DFE32.h" #include "ProjectDoc.h" #include "extern.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CProjectDoc IMPLEMENT_DYNCREATE(CProjectDoc, CDocument) CProjectDoc::CProjectDoc() { } BOOL CProjectDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; m_Ansi = FALSE; m_NoAsm = FALSE; m_Traditional = FALSE; m_Optimize = 0; m_S = FALSE; m_E = FALSE; m_Language = 0; m_Warning = 0; numlibs = 0; m_GenDebug = debugdefault; numfiles = 0; return TRUE; } CProjectDoc::~CProjectDoc() { } BEGIN_MESSAGE_MAP(CProjectDoc, CDocument) //{{AFX_MSG_MAP(CProjectDoc) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CProjectDoc diagnostics #ifdef _DEBUG void CProjectDoc::AssertValid() const { CDocument::AssertValid(); } void CProjectDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CProjectDoc serialization void CProjectDoc::Serialize(CArchive& ar) { int i; if (ar.IsStoring()) { // TODO: add storing code here ar << numfiles; ar << numlibs; ar << m_Ansi; ar << m_E; ar << m_GenDebug; ar << m_Language; ar << m_NoAsm; ar << m_Optimize; ar << m_Other; ar << m_S; ar << m_Traditional; ar << m_Warning; ar << m_Output; for (i = 0; i < numfiles; i++) ar << files[i]; for (i = 0; i < numlibs; i++) ar << libs[i]; } else { // TODO: add loading code here ar >> numfiles; ar >> numlibs; ar >> m_Ansi; ar >> m_E; ar >> m_GenDebug; ar >> m_Language; ar >> m_NoAsm; ar >> m_Optimize; ar >> m_Other; ar >> m_S; ar >> m_Traditional; ar >> m_Warning; ar >> m_Output; for (i = 0; i < numfiles; i++) ar >> files[i]; for (i = 0; i < numlibs; i++) ar >> libs[i]; } UpdateAllViews(NULL); } ///////////////////////////////////////////////////////////////////////////// // CProjectDoc commands