i am following a tutorial on MFC. it is a SDI app. when i try to compile there are 3 errors, and they are from the code the wizard generated! they are in the Doc.cpp file. here is the code
// CBugTracksDoc diagnostics
#ifdef _DEBUG
void CBugTracksDoc::AssertValid() const
{//error here
CDocument::AssertValid();
}
void CBugTracksDoc:ump(CDumpContext& dc) const
{//error here
CDocument:ump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CBugTracksDoc commands//error here
here are the errors
C:\My Courses\Cs133u\BugTracks\BugTracksDoc.cpp(85) : error C2601: 'AssertValid' : local function definitions are illegal
C:\My Courses\Cs133u\BugTracks\BugTracksDoc.cpp(90) : error C2601: 'Dump' : local function definitions are illegal
C:\My Courses\Cs133u\BugTracks\BugTracksDoc.cpp(97) : fatal error C1004: unexpected end of file found
what's going on?
// CBugTracksDoc diagnostics
#ifdef _DEBUG
void CBugTracksDoc::AssertValid() const
{//error here
CDocument::AssertValid();
}
void CBugTracksDoc:ump(CDumpContext& dc) const
{//error here
CDocument:ump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CBugTracksDoc commands//error here
here are the errors
C:\My Courses\Cs133u\BugTracks\BugTracksDoc.cpp(85) : error C2601: 'AssertValid' : local function definitions are illegal
C:\My Courses\Cs133u\BugTracks\BugTracksDoc.cpp(90) : error C2601: 'Dump' : local function definitions are illegal
C:\My Courses\Cs133u\BugTracks\BugTracksDoc.cpp(97) : fatal error C1004: unexpected end of file found
what's going on?