MichaelDev
Friday, June 11, 2004
  Win32 resources from .Net / Resource-Only DLL
Unfortunately, the VS.Net languages such as C# don't let you create conventional resources like you could from the C/C++ compiler. So, if you want a resource-only DLL, you have to go to C++ and build it there.

Microsoft has an article on the proper steps to go through to do this in the VS.Net IDE:

Creating a Resource-Only DLL


Of course, if you want conventional Win32 resources in an assemly, you can do it by invoking RC and taking the result and doing some other command line somewhere. I haven't needed to do that yet. I'm content with a resource-only DLL right now.

This is useful for things like installers and other OS features that don't know how to find resources in assemblies. In our case, it's convenient for getting a certain icon in the add/remove programs control panel and some other things.
 
Comments: Post a Comment



<< Home
Various notes on software development. Currently using C# and .Net. May also include comments on the overall software development process, etc.

Name:
Location: Orange County, California, United States
ARCHIVES
June 2004 / July 2004 / August 2004 / September 2004 / October 2004 / November 2004 / December 2004 / January 2005 / February 2005 / March 2005 / April 2005 / May 2005 / September 2005 / October 2005 / November 2005 / January 2006 / February 2006 / April 2006 / May 2006 / June 2006 / March 2007 /


Powered by Blogger