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?
Printable View
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?
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...
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.Quote:
Originally Posted by Eber Kain