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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Versioning

Status
Not open for further replies.

Pyramus

Programmer
Dec 19, 2001
237
GB
Whats the best way to version an executable built in VS C++?

I believe you add a "resource" to your project, does anyone have any more details?
 
Adding a resource is the standard MS way but you have to remember to update it whenever you do a new release.

I'm using RCS with a version string in each code file. One method that I used to use was to add up all the sub-version numbers together. For example, if there are 5 files at versions 1.0, 1.0, 1.0, 1.0, 1.0, the release number would be 1.000. If one file changed to 1.2 and another to 1.1, then the release number would be 1.003. It gets a bit more complex when it comes to 1.10 and 1.3. This becomes 1.013: not 1.4. I allow for up to 3 digits.

You may be able to do something similar with the MS Source Code Control system. I've never used it so I can't really say.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top