Hello all,
I can't seem to get this to work, even though it has been typed in exactly as in a book:
class CLinesDoc : public CDocument
{
protected: // create from serialization only
CLinesDoc();
DECLARE_DYNCREATE(CLinesDoc)
// Attributes
public:
CTypedPtrList<CObList, CLine*>m_LineList; //line list
CLine LineArray[1000];//array to hold the line objects in
int OnOffArray[1000];//array to see if lines should be drawn
The errors it comes up with are:
error C2143: syntax error : missing ';' before '<'
error C2501: 'CTypedPtrList' : missing storage-class or type specifiers
error C2059: syntax error : '<'
error C2238: unexpected token(s) preceding ';'
any help would be greatly appreciated.
Cheers
Dylan