By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,495 Members | 1,186 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,495 IT Pros & Developers. It's quick & easy.

Adding VERSION RESOURCE to DLL Project

P: n/a
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
Share this Question
Share on Google+
7 Replies


P: n/a
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

P: n/a

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

P: n/a
"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

P: n/a
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

P: n/a

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

P: n/a
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

P: n/a

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.