在编写程序的时候碰到如下的错误:
e:\mc\test\testview.h(40) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(40) : error C2501: 'CNewDialog' : missing storage-class or type specifiers
e:\mc\test\testview.h(40) : error C2501: 'm_pDlg' : missing storage-class or type specifiers#include "stdafx.h"
#include "Test.h"#include "TestDoc.h"
#include "TestView.h"我在其中加入#include "NewDialog.h"
改变语句的位置就会出现以上的错误,请问是什么原因?
e:\mc\test\testview.h(40) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(40) : error C2501: 'CNewDialog' : missing storage-class or type specifiers
e:\mc\test\testview.h(40) : error C2501: 'm_pDlg' : missing storage-class or type specifiers#include "stdafx.h"
#include "Test.h"#include "TestDoc.h"
#include "TestView.h"我在其中加入#include "NewDialog.h"
改变语句的位置就会出现以上的错误,请问是什么原因?
class CNewDialog; 就OK了