Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在 VS2008 下开发一个 VC++ 项目。我的资源文件包含一些用于条件编译的预处理器指令。控制条件编译的一些符号在stdafx.h. 我也需要这些符号对资源编译器可见。我该如何做到这一点?
stdafx.h
#include "headerfile.h"
但是,我认为您不应该从那里包含 stdafx,而是将符号提取到单独的标头中,这样资源编译器就不会与您在 stdafx 中可能拥有的任何其他内容混淆。