[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Increment file version in VC project.

Posted on 2001-08-28
7
Medium Priority
?
276 Views
Last Modified: 2008-02-01
Delphi has this neat feature that let's you automatically increment the version resource with every build. It simply increments the right most digit...

Any ideas how to do the same in VC?
0
Comment
Question by:AssafLavie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 1

Expert Comment

by:AlexReser
ID: 6431253
0
 
LVL 4

Author Comment

by:AssafLavie
ID: 6431316
Ah.. very close.
But it doesn't work for my project since the RC file is not in the project's main directory and it's not named after the project either...
it is:
include\script8.rc

0
 
LVL 4

Expert Comment

by:IainHere
ID: 6431319
Similar to above, but without some of the problems listed on that page:
http://support.microsoft.com/support/kb/articles/Q237/8/70.asp
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 4

Author Comment

by:AssafLavie
ID: 6431341
Thanks, but his second solution requires alot more work (for each project!). so I don't like it. The first one is almost ok, it's just not smart enough to find the right file...
0
 
LVL 86

Accepted Solution

by:
jkr earned 796 total points
ID: 6431699
I've seen several solutions, even though I have to add that I still got back to 'manually' doing this with shell scripts because of my 'bash'-centered build system:

http://www.codeproject.com/tools/autoincbuildnum.asp

http://www.pgh.net/~newcomer/incrementing_build_numbers.htm

http://www3.primushost.com/~ckollars/bldscrpt.html#increment

http://www.bearcanyon.com/tools/ (scroll down to 'BuildNum')
0
 
LVL 86

Expert Comment

by:jkr
ID: 6443225
Just out of curiosity, which one did you end up using?
0
 
LVL 4

Author Comment

by:AssafLavie
ID: 6443746
I havn't. None of them are as easy to use as Delphi. They all require some sort of messing around with res scripts, h files or MSDEV macros.
I'm also working in a team and the others don't find it acceptable.
But thanks.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question