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,
It solved the problem.