Skip to content

Commit

Permalink
Slight adjustments to MFC bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Sep 28, 2010
1 parent 5dd20ce commit 406ca72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions TextView.cpp
Expand Up @@ -15,9 +15,7 @@ Copyright (C) 2000 Nick Gammon.
#include "mainfrm.h"
#include "doc.h"

#if _MSC_VER >= 1400 // doesn't work with Visual Studio 6
#include <../src/mfc/afximpl.h>
#else
#if _MSC_VER < 1400 // doesn't work with Visual Studio 6
#include <../src/afximpl.h>
#endif

Expand Down Expand Up @@ -1720,7 +1718,7 @@ pCmdUI->Enable ();
}


#if _MSC_VER <= 1400
#if _MSC_VER < 1400

#define VERSION_6 MAKELONG(0, 6)

Expand Down Expand Up @@ -1827,7 +1825,7 @@ void CTextView::WriteToArchive(CArchive& ar)
ASSERT_VALID(this);
}

#endif // _MSC_VER <= 1400
#endif // _MSC_VER < 1400

void CTextView::SerializeRaw(CArchive& ar)
// Read/Write object as stand-alone file.
Expand Down
4 changes: 2 additions & 2 deletions TextView.h
Expand Up @@ -52,11 +52,11 @@ class CTextView : public CEditView
CString & result,
int & count);

#if _MSC_VER <= 1400
#if _MSC_VER < 1400
virtual void Serialize(CArchive& ar);
virtual void ReadFromArchive(CArchive& ar, UINT nLen);
virtual void WriteToArchive(CArchive& ar);
#endif // _MSC_VER <= 1400
#endif // _MSC_VER < 1400

// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTextView)
Expand Down

0 comments on commit 406ca72

Please sign in to comment.