Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: UserLoser. on March 13, 2004, 06:43 PM

Title: Automatic version increment
Post by: UserLoser. on March 13, 2004, 06:43 PM
I'm using MSVC++ 6.0, and I'm wondering if there's a way that everytime I compile, I can make the compiler automatically increment the FILEVERSION/PRODUCTVERSION value by one, so I don't have to manually do it.  What I'm talking about is:

(http://www.userloser.net/images/fileversion.png)
Title: Re:Automatic version increment
Post by: Skywing on March 13, 2004, 06:57 PM
The simplest way would be to write a simple program to run as a pre/post build step and modify the .rc file.
Title: Re:Automatic version increment
Post by: UserLoser. on March 13, 2004, 07:13 PM
Quote from: Skywing on March 13, 2004, 06:57 PM
The simplest way would be to write a simple program to run as a pre/post build step and modify the .rc file.

Thanks, I'll go do that now. I'm still not that familiar with MSVC++ yet, and was unaware of what pre/post build steps did since I never bothered with them.