我使用类向导向工程里添加一个从CTreeView继承的CDBTreeView类
添加完成以后编译老是出这样的问题!急求答案
这里的CTreeView怎么会没定义呢?晕了一个早上了,还没吃饭!
--------------------Configuration: Auto863 - Win32 Debug--------------------
Compiling...
DBTreeView.cpp
f:\project\auto863\dbtreeview.h(14) : error C2504: 'CTreeView' : base class undefined
F:\Project\Auto863\DBTreeView.cpp(17) : error C2440: 'return' : cannot convert from 'class CDBTreeView *' to 'class CObject *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
F:\Project\Auto863\DBTreeView.cpp(17) : error C2653: 'CTreeView' : is not a class or namespace name
F:\Project\Auto863\DBTreeView.cpp(17) : error C2065: 'classCTreeView' : undeclared identifier
F:\Project\Auto863\DBTreeView.cpp(28) : error C2653: 'CTreeView' : is not a class or namespace name
F:\Project\Auto863\DBTreeView.cpp(39) : error C2065: 'GetDocument' : undeclared identifier
F:\Project\Auto863\DBTreeView.cpp(39) : error C2440: 'initializing' : cannot convert from 'int' to 'class CDocument *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
F:\Project\Auto863\DBTreeView.cpp(49) : error C2653: 'CTreeView' : is not a class or namespace name
F:\Project\Auto863\DBTreeView.cpp(54) : error C2653: 'CTreeView' : is not a class or namespace name
Error executing cl.exe.Auto863.exe - 9 error(s), 0 warning(s)