Project Properties - Version
The Version properties page allows you to add revision numbers and descriptive text (such as company name and copyright information) into your compiled applications.
When you compile your project, the linker embeds the version information as an embedded resource into the compiled executable.
Include Version Information in Build
Check this option to enable version information to be entered. This information is then included in the compiled code.
Application Version
Major, Minor, Release, and Build each specify a component of the application version number. The combined string defines a version number for the application, for example, 11.0.63.0.
Auto-Increment Application Build Information
Check this option to have the application build number incremented automatically each time the project is compiled.
Special Build
Check this option to indicate that the version is a variation of the standard release.
Private Build
Check this option to indicate that the version was not built using standard release procedures.
Comments
Use this box to enter additional application information for diagnostic purposes.
Company Name
Use this box to enter the name of the company that produced the application.
File Description
Use this box to enter a general description of the application file.
Internal Name
Use this box to enter any internal name the application is known as during its development.
Legal Copyright
Use this box to enter copyright notices.
Legal Trademarks
Use this box to enter trademarks and registered trademarks that apply to the application.
Original Filename
Use this box to enter the original filename, not including the path.
Product Name
Use this box to enter the name of the product that the application is distributed with. This is the product relating to the product version information entered above.
Special Build Notes
Use this box to enter notes pertaining to the special build of this application. You would enter these notes when the special build checkbox is checked.
Accessing Version Information Programmatically
Once Version Information is compiled into an application, users can examine the information by displaying your application's Properties dialog in Windows Explorer. Programmatically, you can retrieve the Version Information at runtime using the cVersionInfo class.
The AboutDialog class can automatically display the Version number from the running application's Version Information, if it is available. To use this feature, do not set the AboutDialogās Version property, as any value you set (even null) will take precedence.