resource.h文件内容为:
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by TESTMCI.RC
//// Next default values for new objects
//
#define IDC_MAIN_EDIT 1004
#define IDC_NOTIFY_MESSAGE 1005
#define IDC_NOTIFY_ID 1006
#define IDC_NOTIFY_SUCCESSFUL 1007
#define IDC_NOTIFY_SUPERSEDED 1008
#define IDC_NOTIFY_ABORTED 1009
#define IDC_NOTIFY_FAILURE 1010
#define IDC_SIGNAL_MESSAGE 1011
#define IDC_SIGNAL_ID 1012
#define IDC_SIGNAL_PARAM 1013
#define IDC_RETURN_STRING 1014
#define IDC_ERROR_STRING 1015
#define IDC_DEVICES 1016
#define IDC_STATIC -1
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 100
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif编译时出错信息为:
C:\WINDOWS\Personal\TESTMCI\resource.h(33) : fatal error RC1004: unexpected end of file found
错误在那里呀?
但你所说的问题,还需要进一步找原因
参考一下其它的resource.h
没有#endif
之类的问题
反正几乎就是不能结束编译看看是不是(){}#if#endif都匹配
默认添加的控件,比如static text和group box,其ID都为IDC_STATIC。
如果你要对其进行操作,必须修改其ID。比如:IDC_STATIC1,这是为了保持ID的唯一性
你贴出的代码#if和#endif是配对的