RC1011 compiler limit: 'E-SafeNet': macro definition too big

Qi Cheng 0 Reputation points
2023-09-20T02:45:19.87+00:00
Hi Experts,

     I have got the error "RC1011 compiler limit: 'E-SafeNet': macro definition too big ColorDetector E:\C++Project\ColorDetector\resource.h 1 " when I try to create a MFC project on my VS2022. I just followed the guidance to create the MFC project based on dialog and then I debugged the project and got this error. I don't know how to correct it since I did not change anything. I also tried to download VS2022 again to see if there were something wrong for my VS2022 but still could not help.

The Resource.h file is like that:

//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ 生成的包含文件。
// 由 ColorDetector.rc 使用
//
#define IDR_MAINFRAME					128
#define IDM_ABOUTBOX					0x0010
#define IDD_ABOUTBOX					100
#define IDS_ABOUTBOX					101
#define IDD_COLORDETECTOR_DIALOG				102
// 新对象的下一组默认值
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE	129
#define _APS_NEXT_CONTROL_VALUE		1000
#define _APS_NEXT_SYMED_VALUE		101
#define _APS_NEXT_COMMAND_VALUE		32771
#endif
#endif

So, please some one can explain me why this happened? and how to solve this?...

 

Thanks in Advance,
QC
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,044 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.