--------------------Configuration: Test - Win32 Debug--------------------
Compiling...
MainFrm.cpp
e:\mc\test\testview.h(20) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(20) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
e:\mc\test\testview.h(20) : error C2501: 'GetDocument' : missing storage-class or type specifiers
Test.cpp
e:\mc\test\testview.h(20) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(20) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
e:\mc\test\testview.h(20) : error C2501: 'GetDocument' : missing storage-class or type specifiers
TestDoc.cpp
e:\mc\test\testview.h(20) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(20) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
e:\mc\test\testview.h(20) : error C2501: 'GetDocument' : missing storage-class or type specifiers
E:\mc\Test\TestDoc.cpp(107) : error C2664: 'CFileDialog::CFileDialog' : cannot convert parameter 6 from 'class CTestDoc *const ' to 'class CWnd *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
TestView.cpp
e:\mc\test\testview.h(20) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(20) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
e:\mc\test\testview.h(20) : error C2501: 'GetDocument' : missing storage-class or type specifiers
E:\mc\Test\TestView.cpp(59) : error C2440: 'initializing' : cannot convert from 'int *' to 'class CTestDoc *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\mc\Test\TestView.cpp(105) : error C2556: 'class CTestDoc *__thiscall CTestView::GetDocument(void)' : overloaded function differs only by return type from 'int *__thiscall CTestView::GetDocument(void)'
        e:\mc\test\testview.h(20) : see declaration of 'GetDocument'
E:\mc\Test\TestView.cpp(105) : error C2371: 'GetDocument' : redefinition; different basic types
        e:\mc\test\testview.h(20) : see declaration of 'GetDocument'
一编译突然出现这么一堆错误,指向的都是系统自动生成的那些函数,到底是怎么回事呢?