Here is the contents of Day10Doc.h
Expand|Select|Wrap|Line Numbers
- #if !defined(AFX_DAY10DOC_H__16736853_CB29_49E7_A8ED_C912CAE666EC__INCLUDED_)
- #define AFX_DAY10DOC_H__16736853_CB29_49E7_A8ED_C912CAE666EC__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CDay10Doc : public CDocument
- {
- protected: // create from serialization only
- CDay10Doc();
- DECLARE_DYNCREATE(CDay10Doc)
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDay10Doc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- CLine* GetLine(int nIndex); //LINE 36
- int GetLineCount();
- CLine* AddLine(CPoint ptFrom, CPoint ptTo); //LINE 38
- virtual ~CDay10Doc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CDay10Doc)
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CObArray m_oaLines;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DAY10DOC_H__16736853_CB29_49E7_A8ED_C912CAE666EC__INCLUDED_)
day10doc.h(36) : error C2501: 'CLine' : missing storage-class or type specifiers
day10doc.h(36) : error C2501: 'GetLine' : missing storage-class or type specifiers
day10doc.h(38) : error C2143: syntax error : missing ';' before '*'
day10doc.h(38) : error C2501: 'CLine' : missing storage-class or type specifiers
day10doc.h(38) : error C2501: 'AddLine' : missing storage-class or type specifiers
I can't find any obvious syntax error, and I have no idea what the storage class line means...