On 5/23/06, Chris.Stratmann@blum.com <Chris.Stratmann@blum.com> wrote:
> Ok...Um...I am doing something a little different than what other
> programmers are doing. I am guessing you get questions regarding the
> resource (rc) file in a C++ project and how to change the strings in this
> file before a final build is done so the resulting executable contains the
> proper strings. I understand this, but my situation is a little just
> slightly different.
> I need to change the version number and add in "Other Version
> Information" on these exe's and dll's (This is located on the Version tab
> can be found in the properties of the executable). The reason being is that
That's exactly the information contained in the *.rc file of a
project. Those are the version resources of an executable (exe, dll).
> I would like to look at the version number to find out what repository
> version number this executable is without actually running it. This is
> possible with a little manipulation of the following
> project...http://www.codeproject.com/library/VerInfoLib.asp
> I figured out a solution to my own problem. In Microsoft Visual
> Studios there is a post-build option which allows my to run scripts and
> executables after building an exe or dll. Therefore I just hooked my
> program that changing the version number into the post-build and manually
> retrieve the version number out of the .svn\entries file to write my new
> version number on my exe or dll.
Why do you want to modify the version string of your own executable
*after* the build? You can do the same before the build, and the build
will then automatically have the correct version info string.
TortoiseSVN does the very same thing:
we have the version information not just in our version.in/version.h
header file, but the defines in that header file are also used in the
*.rc2 file (included in the main *.rc file).
That way, the version info is accurate after a build, without the need
to modify the executable file after the build.
Stefan
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Tue May 23 12:36:52 2006