I'm trying to get a pointer to my CMyProjectView in CMyPropertyPage, but when I try to include MyProjectView.h to do this, I get errors relating to the line:
CMyProjectDoc* GetDocument() const;
Despite MyProjectView compiling fine when not included in CMyPropertyPage. The errors are:
MyPropertyPage.cpp
MyProjectView.h(24) : error C2143: syntax error : missing ';' before '*'
MyProjectView.h(24) : error C2501: 'CRollersView::CRollersDoc' : missing storage-class or type specifiers
MyProjectView.h(24) : error C2501: 'CRollersView::GetDocument' : missing storage-class or type specifiers
MyProjectView.h(24) : warning C4183: 'GetDocument': missing return type; assumed to be a member function returning 'int'
Is there a way of getting a pointer to a class without including it's header, or is there a way of getting around these errors?
Thanks