I have a C++ program in Visual Studio Community 2015 where I need to include a different resource for debug and release versions. Debug and release versions are differentiated by defining the _DEBUG
macro for the debug version, otherwise leaving it undefined.
So naturally I tried to put a #if defined(_DEBUG)
into my .rc file, but when compiling the resource compiler acts like the macro isn't defined and compiles it as it was a release version (when it is not).
How do I make the resource compiler see the macro?
为了将预处理器定义传递给资源编译器,您还必须在项目设置(配置属性 -> 资源 -> 常规)中定义它。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.