473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

add version to resource only DLL


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?

--
kaplane
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Mar 8 '07 #1
1 3514
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...).

--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
"kaplane" wrote:
>
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?

--
kaplane
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Mar 8 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Z D | last post by:
Hello, If I have a .NET assembly, how do I determine what version of the .NET framework it.... 1) was compiled against 2) is supposed to use 3) is compatible with? Is there a utility that...
76
by: kwilder | last post by:
This works, but it doesn't load the latest version of the xml if it was just modified without closing and reopening the browser. Here's the scenario: I have an xml doc called results.xml. It...
0
by: George L. Sexton | last post by:
MH Software, Inc. is pleased to announce the release of version 3.2.11 of its Connect Daily web calendar software. This is primarily a small feature release with a few bug fixes. Topics in this...
2
by: opswat | last post by:
Hello, I am currently working on a C++ project for a PocketPC with Windows Mobile 5.0 in Visual Studio 2005. I am currently looking for a way to get file version information, i.e. file...
1
by: Dror Hershkovitz. | last post by:
Hello, I'm compiling an .exe file on VS2005 under C++ without framework support. For some reason, when I look at the properties of the .exe file there is no version tab although the project does...
7
by: Rich | last post by:
I am resurrecting this question (since it got bumped down by more recent posts). This is probably very simple - I need to add a version resource to a DLL project in MSVC++ 2005 Express in order...
7
by: =?Utf-8?B?RG9u?= | last post by:
I'm using VS2005 to build a C++ assembly. I set a Key File in the linker advanced options for the project so that the assembly would be strong named. I filled out the data in AssemblyInfo.cpp and...
4
by: Bob Altman | last post by:
Hi all, I have a C++/CLI project (VS 2005) that produces a DLL that exports C bindings. Internally, this DLL contains routines compiled with /clr. I notice that my DLL doesn't have a version...
6
by: =?Utf-8?B?Q2hhcmxlcyBS?= | last post by:
I have two different executables that I want to build w/ the same source but in 2 different compilers, vs60 and vs2008. I have 2 different configurations w/ different options etc, but I want one...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.