Dynamic version of dll file

T

Torben Laursen

I have a C++ dll and I would like to get the compilor to auto generate a
version number of the dll that it create just like the C# compiler does.
Now I set a number in a .rc file but it would be nice if I could just set
the first 2 number and the compiler could then add the rest like 2.1.3543

Can anyone tell me how to do this?

I use VS2008

Torben
 
C

Cholo Lennon

Torben said:
I have a C++ dll and I would like to get the compilor to auto
generate a version number of the dll that it create just like the C#
compiler does. Now I set a number in a .rc file but it would be nice
if I could just set the first 2 number and the compiler could then
add the rest like 2.1.3543

Can anyone tell me how to do this?

I use VS2008

Torben

The C++ compiler doesn't know anything about version numbering in .rc. You
should use some IDE add-ins/macros like:

http://www.codeproject.com/KB/macros/versioningcontrolledbuild.aspx
http://www.codeproject.com/KB/macros/IncVersion.aspx

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top