Page 911
On page 911 he says: "Note that the variable VERSION_NUMBER is used exclusively by the IMPLEMENT_SERIAL() macros in the shape classes, so you could delete it from the OurConstants.h file used in the Sketcher program".
However, when I do delete it, it doesn't compile, because it's used in Elements.cpp:
// Elements.cpp : implementation file
//
#include "stdafx.h"
#include "Elements.h"
#include <math.h>
#include "OurConstants.h"
IMPLEMENT_SERIAL(CElement, CObject, VERSION_NUMBER)
IMPLEMENT_SERIAL(CLine, CElement, VERSION_NUMBER)
IMPLEMENT_SERIAL(CRectangle, CElement, VERSION_NUMBER)
IMPLEMENT_SERIAL(CCircle, CElement, VERSION_NUMBER)
IMPLEMENT_SERIAL(CCurve, CElement, VERSION_NUMBER)
IMPLEMENT_SERIAL(CText, CElement, VERSION_NUMBER)
...
So what gives?
Dan Crossley
__________________
Dan Crossley
|