473,724 Members | 2,240 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding VERSION RESOURCE to DLL Project

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 to have version info,
copyright, etc. when checking the DLL file properties from Windows
Explorer.

Any guidance is appreciated.
Bruno van Dooren [MVP VC++] wrote:
This is very easy.
Just add a version resource to the project.
The IDE will add all .rc and .h files for you.
The only thing you need to do is to fill in the correct information in the
version resource.
Build your DLL and it will have the version tab in the windows properties
box.

Bruno,

OK, I am trying to add a version resource to the project (MSVC++ 2005
Express). In the Solution Explorer pane I right-click on the "Resource

Files" folder, and select "Add - New Item". The "Add New Item" dialog
gives me "Categories " on the left and "Templates" on the right. The
available categories under "Visual C++" are UI, code, data, and
property sheets. By selecting these I am given options for Templates
as follows:
UI Category -"Windows Form" template
code Category -"C++ File", "Header File", "Component Class" templates

data Category -"DataSet" template
PropertySheets Category -"Property Sheet (.vsprops)" template
Will any of these get me to a "version resource", or am I in the wrong
place? What should I be doing to add the version resource?
Thanks,
Rich

Nov 21 '06 #1
7 3465
Open the resource view. Right click your project and choose "Add" ->
"Resource.. .".

In the add resource dialog choose "Version"

Marcus

"Rich" <ri************ @us.army.milwro te in message
news:11******** *************@e 3g2000cwe.googl egroups.com...
>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 to have version info,
copyright, etc. when checking the DLL file properties from Windows
Explorer.

Any guidance is appreciated.
Bruno van Dooren [MVP VC++] wrote:
>This is very easy.
Just add a version resource to the project.
The IDE will add all .rc and .h files for you.
The only thing you need to do is to fill in the correct information in
the
version resource.
Build your DLL and it will have the version tab in the windows properties
box.


Bruno,

OK, I am trying to add a version resource to the project (MSVC++ 2005
Express). In the Solution Explorer pane I right-click on the "Resource

Files" folder, and select "Add - New Item". The "Add New Item" dialog
gives me "Categories " on the left and "Templates" on the right. The
available categories under "Visual C++" are UI, code, data, and
property sheets. By selecting these I am given options for Templates
as follows:
UI Category -"Windows Form" template
code Category -"C++ File", "Header File", "Component Class" templates

data Category -"DataSet" template
PropertySheets Category -"Property Sheet (.vsprops)" template
Will any of these get me to a "version resource", or am I in the wrong
place? What should I be doing to add the version resource?
Thanks,
Rich

Nov 21 '06 #2

Marcus Heege wrote:
Open the resource view. Right click your project and choose "Add" ->
"Resource.. .".

In the add resource dialog choose "Version"

Marcus

Marcus,

I feel like an idiot - please bear with me. I am not seing the
resource view - in the Solution Explorer on the left I have three tabs
- Solution Explorer, Class View, and Property Manager.

If I right-click on my project (in solution explorer) and select "Add",
I see five options - New Item, Existing Item, New Filter, Class, and
Resource. The problem here is that "Resource" is grayed-out and cannot
be selected.

Under the "Project" pull-down, I also see things like "Add Class" and
"Add Resource" - again "Add Resource" is grayed-out and cannot be
selected.

What am I missing?

Thanks,
Rich

Nov 21 '06 #3
"Rich" <ri************ @us.army.milwro te in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
Marcus,

I feel like an idiot - please bear with me. I am not seing the
resource view - in the Solution Explorer on the left I have three tabs
- Solution Explorer, Class View, and Property Manager.

If I right-click on my project (in solution explorer) and select "Add",
I see five options - New Item, Existing Item, New Filter, Class, and
Resource. The problem here is that "Resource" is grayed-out and cannot
be selected.

Under the "Project" pull-down, I also see things like "Add Class" and
"Add Resource" - again "Add Resource" is grayed-out and cannot be
selected.

What am I missing?

Thanks,
Rich
In the menu "View" you should see the "Resource View". Maybe you are using a
project type where native resources do not make sense.

Marcus
Nov 21 '06 #4
I feel like an idiot - please bear with me. I am not seing the
resource view - in the Solution Explorer on the left I have three tabs
- Solution Explorer, Class View, and Property Manager.

If I right-click on my project (in solution explorer) and select "Add",
I see five options - New Item, Existing Item, New Filter, Class, and
Resource. The problem here is that "Resource" is grayed-out and cannot
be selected.

Under the "Project" pull-down, I also see things like "Add Class" and
"Add Resource" - again "Add Resource" is grayed-out and cannot be
selected.

What am I missing?
Rich,

As I answered before, VC express does not have the resource editor.
I replied to your original post with an attachment. Please look there.

In it is an empty console project with a version resource.
look at the project, and add those files manually to your dll project.
You only need to edit those files in a text editor to fill in the correct
information.

--

Kind regards,
Bruno van Dooren
br************* *********@hotma il.com
Remove only "_nos_pam"
Nov 21 '06 #5

Bruno van Dooren [MVP VC++] wrote:
Rich,

As I answered before, VC express does not have the resource editor.
I replied to your original post with an attachment. Please look there.

In it is an empty console project with a version resource.
look at the project, and add those files manually to your dll project.
You only need to edit those files in a text editor to fill in the correct
information.

--

Kind regards,
Bruno van Dooren
br************* *********@hotma il.com
Remove only "_nos_pam"
Bruno,

Sorry to be a pain - I cannot find your earlier reply or your
attachment. Could you e-mail this to me at ri************@ us.army.mil?

Thanks again,
Rich

Nov 21 '06 #6
Sorry to be a pain - I cannot find your earlier reply or your
attachment. Could you e-mail this to me at ri************@ us.army.mil?
No problem at all. I sent you a mail with the attachment.
Let me know how it turns out.

--

Kind regards,
Bruno van Dooren
br************* *********@hotma il.com
Remove only "_nos_pam"
Nov 21 '06 #7

Bruno van Dooren [MVP VC++] wrote:
Sorry to be a pain - I cannot find your earlier reply or your
attachment. Could you e-mail this to me at ri************@ us.army.mil?

No problem at all. I sent you a mail with the attachment.
Let me know how it turns out.

--

Kind regards,
Bruno van Dooren
br************* *********@hotma il.com
Remove only "_nos_pam"
Bruno,

Received the files, got it working! Thanks for your help.

Rich

Nov 21 '06 #8

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

Similar topics

1
5853
by: Gabriel Lozano-Morán | last post by:
First of all sorry for the cross-posting but I am not sure wether this belongs under internationalization or just general. Environment: Visual Studio .NET 2003 Problem: Newly added and renamed resource files are not automatically linked to the object they belong by the IDE
3
2151
by: Bern | last post by:
This message is probably out of topic but I get no response from the less popular microsoft.public.dotnet.general newsgroup. Is there a resource manager of some sort in VS C# .NET which you can use to add resources such as icons, textfiles, etc. ? AS far as I see it, pictures can only be added through the properties of controls such as "BackgroundImage". I opened up the resource view and it is always blank. I tried creating a .RESX file...
7
5427
by: Wysiwyg | last post by:
Is there any way to add an embedded resource to a project without copying it to the project's directory? I have shared resources and don't want each project using the images, xml files, etc. to need to be updated with the current copy before being built. I also don't want projects being built with the old copy. Thanks! Bill
6
3223
by: Derek Martin | last post by:
Hi there, I have a couple of bitmaps that are called in my project that I need to use. They were added to my solution as existing objects and are located in the same folder as the rest of the vb files. I set their Build Action to Embedded Resource and compiled without any errors, however, when calling them, like this inside Initialize Components: myclosebutton.SetCloseBitmap(New Bitmap(MyClass.GetType(), "close.bmp"),...
1
3576
by: Ellis Yu | last post by:
Hi all, I'd tried to follow the instructions from msdn for adding icon image for a control. I've checked the name of bmp file is same as the control name and turn the bmp file to "Embedded Resource". After building the project again, the icon of my user control is the same as default. I'm not sure it's related to my VB.Net version is a standard edition or not. Anyone know what's wrong my steps? Thanks Rdgs
4
2848
by: Dinsdale | last post by:
I'm looking at adding scheduling features to an application and I wanted to ask the community about any experience with scheduling components, either open source like from code project or from a vendor. I'd like to be able to create schedules and lock resources for things like collision detection (two events trying to use the same resource). I've seen some GANTT charting components but I don't think that's what I'm looking for. I'd...
8
19937
by: Jason | last post by:
Hello, I am trying to utilitze the AJAX Control toolkit in my asp.net project. I have added a reference to AjaxControlToolkit.dll, and in my page, added these lines of code: <ajaxToolkit:ToolkitScriptManager runat="Server" EnableScriptGlobalization="true" EnableScriptLocalization="true" ID="ScriptManager1" />
5
4465
by: DBC User | last post by:
I have a situation, where I need to add 4 or 5 data files (they change every time I build) in my project during build time and somehow I need a way to access these files during runtime. So I have 2 questions 1. Is it possible to identify all the files in the resource file during runtime by name of the file? 2. Is it possible to add files to a project at build time to make an exe with those files? Thanks.
4
3178
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 resource. I assume that, unlike C# and VB, C++ doesn't automatically generate a version resource. Is there any way to make this happen? In particular, I don't want to have to manually update the file version in the version resource to keep it in...
0
8868
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8741
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9388
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9241
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9160
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9090
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8062
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4504
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2149
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.