|
|
Updates to Using Visual C++ 5
Any thousand page book is bound to contain
an error or two. I hate them, though, and want to eliminate them from
future editions of the book. If you find a problem, please email
me about it. I'll add problems (and fixes) to this page as I
discover them.
- In Chapter 2, on page 53, you are
instructed to add the line "
#include sdidialog.h"
to the "very beginning" of the file. Do not add it
before "#include stdafx.h"!
If you do, it will be ignored. The beginning of sdi.cpp should
look like this:
// SDI.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "SDI.h"
#include "MainFrm.h"
#include "SDIDoc.h"
#include "SDIView.h"
#include "sdidialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
Have you been to the Using
Visual C++ 5 page?
|
|
|