我在VC中建了一个单文档的FormView的工程,当我新建了一个文件然后包含了一系列头文件后就会出如下错误
f:\encryptfile\tabdlgstatfastio1.h(21) : error C2065: 'IDD_STATUS_FASTIO' : undeclared identifier
我cpp文件中的头文件包含如下:
#include "stdafx.h"
#include "IOCtrl.h"
#include "EncryptFileView.h"可是当我把包含顺序改成如下以后就好了:
#include "EncryptFileView.h"
#include "IOCtrl.h"
#include "stdafx.h"但是我用CEncryptFileView * pView;定义一个指针时编译器却告诉我语法错误,我的天 错误是没完没了呀。请大侠指点,感激不禁!!!!!
f:\encryptfile\tabdlgstatfastio1.h(21) : error C2065: 'IDD_STATUS_FASTIO' : undeclared identifier
我cpp文件中的头文件包含如下:
#include "stdafx.h"
#include "IOCtrl.h"
#include "EncryptFileView.h"可是当我把包含顺序改成如下以后就好了:
#include "EncryptFileView.h"
#include "IOCtrl.h"
#include "stdafx.h"但是我用CEncryptFileView * pView;定义一个指针时编译器却告诉我语法错误,我的天 错误是没完没了呀。请大侠指点,感激不禁!!!!!
2 CEncryptFileView * pView初始了没?
3 EncryptFileView.cpp IOCtrl.cpp 中也
#include "stdafx.h" 尝试一下
#include "resource.h"
#include "IOCtrl.h"
#include "EncryptFileView.h"
查找资源其对应的值!直接写上就可以了!