Re: Preprocessor symbols ignored in .RC file

Tech-Archive recommends: Speed Up your PC by fixing your registry



On May 31, 2:12 pm, David Wilkinson <no-re...@xxxxxxxxxxxx> wrote:
Don:

For some reason I have never quite understood, the resources have separate
preprocessor definitions. Look in the Resources section of the project properties.

Also, if you hand edit the .rc file in an MFC project, your changes may get
overwritten. I always do this kind of thing in the .rc2 file.

--
David Wilkinson
Visual C++ MVP

Thank you! That fixed the problem. I've never even looked in that
property before.
.



Relevant Pages

  • Re: Headers common to .cpp and .rc files
    ... .RC file you may have problems if you use the RC editor to add or remove ... resources in the future since it takes liberties in rewriting the file. ... there is no way of controlling how the editor rewrites the .RC file. ... there is no compelling reason to have an .RC2 file at ...
    (microsoft.public.vc.language)
  • Re: Add item to resource? Or library?
    ... use of the Resources section of your Project Properties. ... choose the expando button next to "Add Resource". ... as a text file and you can get the string contents like this: ...
    (microsoft.public.dotnet.languages.csharp)