Beginner's question: How to set build number of project?

  • Thread starter Thread starter kackson
  • Start date Start date
K

kackson

Hi.
Each time I right click on an exe file, say Acrobat.exe, and look at
the properties page, I could see information such as company name,
version and build number, etc. of the application.
How does anyone do that? I've used Microsoft .Net 2003 to write my C++
codes for quite a while. But I am still unaware of how do I set my
application envrionment so that when I compile my application, I could
also have these information embedded inside; that my user can right
click and get to know my application name, company name, and
especially my version and build information. Could anyone please point
me to any website or books or articles that talk abt this? Thank you.
 
Hi.
Each time I right click on an exe file, say Acrobat.exe, and look at
the properties page, I could see information such as company name,
version and build number, etc. of the application.
How does anyone do that? I've used Microsoft .Net 2003 to write my C++
codes for quite a while. But I am still unaware of how do I set my
application envrionment so that when I compile my application, I could
also have these information embedded inside; that my user can right
click and get to know my application name, company name, and
especially my version and build information. Could anyone please
point me to any website or books or articles that talk abt this?
Thank you.

Have a look to:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/w
inui/windowsuserinterface/resources/versioninformation.asp
 
Kackson, the link is is word wrapped, copy and past the part below to the
first part in your browser.
The link works!
 
Yamake Takahashi said:
You need to make a resource (.rc) file and add it to your project.
Open the Resource View, right click your project name, select Add, then
New
Resource.
Double-Click "Version Info". Edit the info and compile. Voila! Instant
Version Info.

Correct me if I'm wrong, but I think the build number should reflect the
number of builds of the projects so far. This version info resource won't
update itself automagically, and altering it by hand each time is
impossible. So I say there is no support for this in visual studio, one has
to automatize it for himself using pre/post event actions, like virtualdub
does for example. (sf.net/projects/virtualdub, see /verinc in the source
tree)
 
You need to make a resource (.rc) file and add it to your project.
Open the Resource View, right click your project name, select Add, then New
Resource.
Double-Click "Version Info". Edit the info and compile. Voila! Instant
Version Info.
 
Back
Top