468,243 Members | 2,038 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,243 developers. It's quick & easy.

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 3175
Open the resource view. Right click your project and choose "Add" ->
"Resource...".

In the add resource dialog choose "Version"

Marcus

"Rich" <ri************@us.army.milwrote in message
news:11*********************@e3g2000cwe.googlegrou ps.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.milwrote in message
news:11**********************@h48g2000cwc.googlegr oups.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**********************@hotmail.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**********************@hotmail.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**********************@hotmail.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**********************@hotmail.com
Remove only "_nos_pam"
Bruno,

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

Rich

Nov 21 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Gabriel Lozano-Morán | last post: by
3 posts views Thread by Bern | last post: by
6 posts views Thread by Derek Martin | last post: by
1 post views Thread by Ellis Yu | last post: by
4 posts views Thread by Dinsdale | last post: by
8 posts views Thread by Jason | last post: by
5 posts views Thread by DBC User | last post: by
4 posts views Thread by Bob Altman | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.