Preprocessor symbols ignored in .RC file
- From: Don <daveecom@xxxxxxxxx>
- Date: Sat, 31 May 2008 13:45:00 -0700 (PDT)
(I posted this question in another group that is related to resource
talk, but there's SO little activity I had to post it here too. Sorry
to those who might be annoyed by that.)
Hi,
I am trying to set up the version info so that the exe file has
different info in the version fields, depending on one of my
preprocessor values.
I created a configuration that has the string _W98 in the
Configuration Properties C/C++ Preprocessor tab. Then I tried using
the following inside the .rc file
--------------------------
#ifdef _W98
VALUE "FileVersion", "0.74 W98"
#else
VALUE "FileVersion", "0.74"
#endif
---------------------------
But when I view the .exe file's version info using explorer, there is
no W98 in the File Version field.
I also tried using a duplicate VS_VERSION_INFO resource in the .rc
file with a condition of _W98, the same as the preprocessor symbol and
the file version field in the .exe doesn't change to the proper value
I want it to have.
This is the first time I've tried using a conditional build to change
version info. Is there something I'm doing wrong?
I'm using Visual Studio .Net 2003 with an MFC project.
Thanks,
.
- Follow-Ups:
- Re: Preprocessor symbols ignored in .RC file
- From: David Wilkinson
- Re: Preprocessor symbols ignored in .RC file
- Prev by Date: Partition information
- Next by Date: Re: How should I debug or adobt better data processing for high sp
- Previous by thread: Partition information
- Next by thread: Re: Preprocessor symbols ignored in .RC file
- Index(es):
Relevant Pages
|