Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Proprocessor defines and .rc file

5 views
Skip to first unread message

Don

unread,
May 30, 2008, 11:20:33 PM5/30/08
to
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,

Don

unread,
Jun 1, 2008, 4:54:05 AM6/1/08
to
FYI: In case anyone is reading this, someone told me on another group
that I needed to update the preprocessor symbols for the resource file
too. It is a separate list. for the resource...I just found out.

It solved the problem.

0 new messages