Copy the generated “resource.h” and “xxx.rc” files from the Console App project to the CMake project. Open the xxx.rc file from the Solution Explorer of the CMake project Result: The problem is that when opening the xxx.rc I have an error saying that “winres.h” header is mis...
fatal error RC1015: cannot open include file 'winres.h'解决方案 参考 步骤: 项目——属性——配置属性——常规 改之前的版本信息如下: 然后对WindowsSDK和和平台工具集两栏的版本号进行选择,选择当你VS使用的版本即可,如下图所示: 造成这种错误主要原因是:VS会默认原始开发平台的SDK和工具集,你没有安装,自然...
For example, ID_FILE_NEW is used for the File New menu item in MYAPP.RC's menu resource. You cannot change or delete these framework-defined symbols.Including Additional Header FilesThe AppWizard-created application includes only two header files: RESOURCE.H and AFXRES.H. Only RESOURCE.H is ...
AFXRES.H defines standard symbols, such asID_FILE_NEW, used by the framework and specifically used in AFXRES.RC. AFXRES.H also #include's WINRES.H, which contains a subset of WINDOWS.H that are needed by Visual C++ generated .RC files as well as AFXRES.RC. The symbols defined in AFXRES...