title: Using Preprocessor Macros in .rc Files
body: <p>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 <code>_DEBUG</code> macro for the debug version, otherwise leaving it undefined.<br><br>
  So naturally I tried to put a <code>#if defined(_DEBUG)</code> 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).<br>
  <br>
  How do I make the resource compiler see the macro?</p>