Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2006

Tip: Looking for answers? Try searching our database.

Using .RES files with DLL projects?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rich - 18 Nov 2006 15:21 GMT
I have seen DLL projects use .res files so that when you look at the
properties of the DLL file from Windows Explorer you can see things
like file version, description, copyright, etc.

My question is how do you do this?  (specifically, using MS C++ 2005
Express).

I have found hints in MSDN that indicate that you must first create a
".rc" file then use the resource compiler to make this into a ".res"
file.  I am completely ignorant about how resources are created and
used - any guidance or links to appropriate references are appreciated.
Bruno van Dooren [MVP VC++] - 18 Nov 2006 15:57 GMT
>I have seen DLL projects use .res files so that when you look at the
> properties of the DLL file from Windows Explorer you can see things
> like file version, description, copyright, etc.
>
> My question is how do you do this?  (specifically, using MS C++ 2005
> Express).

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.

Signature

Kind regards,
   Bruno van Dooren
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"

Rich - 18 Nov 2006 16:13 GMT
> This is very easy.
> Just add a version resource to the project.
[quoted text clipped - 3 lines]
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.