My project has a .rc file and it has version information. That file is compiled into the exe right...
How can I get at the current version number from within the code?
My project has a .rc file and it has version information. That file is compiled into the exe right...
How can I get at the current version number from within the code?
Elaborate. Do you mean, open the executable file, and find the version number, or open the .rc file and find the version number, or what?
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
I want my program to be able to display the current version number.
Someone runs the program, the main menu appears, on the bottom right corner it says the version number.
you should know the version number... you're writing the software... just hardcode it into your program...
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
I think he's saying that he wants to extract data from the resource file that is attached to the end of the executable.
well, I have things setup to autpmatically update the version number. So its not a static thing that I can hardcode easily.
That codeguru page wont load for me, I will try it again later.
sure it is... just create a global variable with the version number in it, and before you build it before a release, look up the version number, and increment the build number by one, then build and release... the only thing that you can really increment automatically is the build number anyway, and that's not all that important... most people only pay attention to the major/minor numbers.Originally Posted by Eber Kain
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT