怎么在MainFrame类中包含View类的头文件.
我新建了一个单文挡程序.在MainFrm.cpp中没有包含我的View类文件CMyIEView.h
我自己添加语句"#include "MyIEView.h",但是程序报错.就算我新建的工程.一句代码都不写
也会出错.我看了一哈.在vs 2005 和vc 6.0中都会出错.请教各位,我应该怎么做?我要用到CMyIEView.h类的东西.
错误代码:
Error 1 error C2143: syntax error : missing ';' before '*' d:\myproject\mytest\mytest\mytestview.h 16
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\myproject\mytest\mytest\mytestview.h 16
Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\myproject\mytest\mytest\mytestview.h 16
Warning 4 warning C4183: 'GetDocument': missing return type; assumed to be a member function returning 'int' d:\myproject\mytest\mytest\mytestview.h 16