Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Version Info

Status
Not open for further replies.

trent101

Programmer
Nov 4, 2005
50
AU
I want to know the best way to update the latest build time & date, and version number of my software. I have an about box but how do i set it up so that everytime i build i get a new time and date? and also how do i change the version number correctly?

thanks for your time.
 
There are predefined macros in VC++, for example:
Code:
__DATE__
__TIME__
__TIMESTAMP__
You may add them in a proper place in your sources.

It seems the version number is the other story because of it's not a part of reality, it's convention. You must assign the version number for your application (by hand;).
There is Windows standard resource VERSIONINFO. VS can help you to generate this resource for your project.

If you want automate this process, can you explain why every new compilation must assign a new (next) version number?..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top