locked
stand-alone Resource DLL RRS feed

  • Question

  • I want to know can i create and use a stand alone resource DLL which contains strings, icons and images?
    Tuesday, June 26, 2007 3:48 PM

Answers

  • How to create a resource-only assembly

    1. Create a new application with the Empty Project template.
    2. From the Project menu, choose Add Existing Item to add your resource files to your project.
    3. In Solution Explorer, right-click your project and choose Properties from the shortcut menu to open the Project Property Pages.
    4. In the Output Type drop-down menu, change the output type of your project to Class Library.

      This will cause your assembly to be compiled as a .dll file.

    5. From the Build menu, choose Build <your project> where <your project> is the name of your project.

      Your resources are compiled into the assembly.

    Resources compiled into resource assemblies can be retrieved using the ResourceManager class. For more information, see Retrieving Resources with the ResourceManager Class.

     

     

    Creating an External Resource DLL

    You may find solution in this thread.

     

     

    Accessing resources across projects

    In this thread, Derek Smyth provides good references, also you can download his sample programe about how to creat and access resource assembly.

     

    Hope that helps!

    Friday, June 29, 2007 5:59 AM