Adding VERSION RESOURCE to DLL Project

R

Rich

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.

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
 
M

Marcus Heege

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

In the add resource dialog choose "Version"

Marcus
 
R

Rich

Marcus said:
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
 
M

Marcus Heege

Rich said:
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
 
B

Bruno van Dooren [MVP VC++]

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
(e-mail address removed)
Remove only "_nos_pam"
 
R

Rich

Bruno said:
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
(e-mail address removed)
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 (e-mail address removed)?

Thanks again,
Rich
 
B

Bruno van Dooren [MVP VC++]

Sorry to be a pain - I cannot find your earlier reply or your
attachment. Could you e-mail this to me at (e-mail address removed)?

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

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 
R

Rich

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

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"

Bruno,

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

Rich
 

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