Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio VS2008:如何使stdafx.h中定义的符号对资源编译器可见?_Visual Studio_Visual Studio 2008_Preprocessor_Conditional Compilation - Fatal编程技术网

Visual studio VS2008:如何使stdafx.h中定义的符号对资源编译器可见?

Visual studio VS2008:如何使stdafx.h中定义的符号对资源编译器可见?,visual-studio,visual-studio-2008,preprocessor,conditional-compilation,Visual Studio,Visual Studio 2008,Preprocessor,Conditional Compilation,我正在VS2008下从事一个VC++项目。我的资源文件包含一些用于条件编译的预处理器指令。一些控制条件编译的符号在stdafx.h中定义。我需要这些符号对资源编译器也是可见的。我该如何做到这一点 在资源视图中右键单击资源文件 选择资源包括。。。从上下文菜单中 插入include headerfile.h 但是,我认为您不应该从那里包括stdafx,而是应该将符号提取到一个单独的头,这样resource编译器就不会与stdafx中可能包含的任何其他内容混淆

我正在VS2008下从事一个VC++项目。我的资源文件包含一些用于条件编译的预处理器指令。一些控制条件编译的符号在stdafx.h中定义。我需要这些符号对资源编译器也是可见的。我该如何做到这一点

在资源视图中右键单击资源文件 选择资源包括。。。从上下文菜单中 插入include headerfile.h 但是,我认为您不应该从那里包括stdafx,而是应该将符号提取到一个单独的头,这样resource编译器就不会与stdafx中可能包含的任何其他内容混淆