I create a SDI project with VC 6.0.
I have to put
in the file MainFrm.cpp, since I need to link testView to a splitted window pane using
However, the compiler complaint with the following lines.
d:\vc_project\test\testview.h(27) : error C2143: syntax error : missing ';' before '*' d:\vc_project\test\testview.h(27) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
d:\vc_project\test\testview.h(27) : error C2501: 'GetDocument' : missing storage-class or type specifiers
The error can be replayed easily by creating a SDI project and typing in the MainFrm.cpp file
i have had a look online, but found no solutions.
You should include TestDoc.h as well since CTestView depends on it. In my opinion, that should have been taken care of in the TestView.h file, to make it self supporting. But sometimes compilation speed is preferred over ease-of-use.