add version to resource only DLL

K

kaplane

I have a resource only project/DLL, and I want to be able to add version
information to it. There are make files (batch files) that create the
rc file at build time and it overwrites whatever is already in there.

I tried adding another resource file to store the version information,
but it seems to ignore that once the other resource file exists. So I
tried adding a line to the .bat file that generates the .rc file to
append the version information to it, but there was no change to the
DLL. The .rc file had the text in there, but the DLL still had no
version attached to it.

Is there some special way to add the version information to a resource
only DLL?
 
G

Guest

You need to add a VS_VERSION_INFO section to your resources. This can be
added by Visual C++.

In the past I've made some defines for the various version information I
wanted to update during build and included that file in the Read-only symbol
directives (I forget if VC2005 does that still)

I may have had to move the Version info to its own file and included that as
well (the wizard may not like the defines...).
 

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