Adding File Version info to a vc++ program

Martin

Lifer
Jan 15, 2000
29,178
1
81
I'm writing a program and I need add the normal version information (that one that shows up when you right click on the EXE and go to properties), but I can't find any useful info on how to do it.

This is for an MFC app in VC++, not .NET or anything. Any help would be appreciated.

edit: I tried changing the version info under project>settigns>link>version, but that doesn't do anything.
 

Templeton

Senior member
Oct 9, 1999
467
0
0
All you should need to do is add a new Version Resource to your project and edit appropriately.
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
If you have used the VS wizard to create the project, look in the workspace pane for the ResourceView Tab.

Select the tab and find the Vesrion folder.
 

Martin

Lifer
Jan 15, 2000
29,178
1
81
That works when I create a sample project, but for some reason it doesn't work on my coworker's existing project. At least we know where to look now though, thanks for the help.
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Look in the sample dummy RC file (text view) and see where the version information section is layed out.

Then look for the same section in RC file on the problem project.
It may not exist. If it does not, the paste that section from the dummy project.
If it does exist; look for what the differences may be and adjust accordingly (AFTER BACKING UP)
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Originally posted by: Templeton
All you should need to do is add a new Version Resource to your project and edit appropriately.

when in the IDE, you should also be able to right click on the resource file (problem project) and have a wizard come up that will prompt you for Version

tested using 6.0