65.9K
CodeProject is changing. Read more.
Home

Creating a Resource-Only DLL

starIconstarIconstarIconstarIconstarIcon

5.00/5 (2 votes)

Dec 15, 2022

CPOL
viewsIcon

12623

Create a resource-only DLL

To create a resource-only DLL, you create a new Windows DLL (non-MFC) project, and add your resources to the project:

  1. Select Win32 Project in the New Project dialog box. Enter the project and solution names, and choose OK.

  2. In the Win32 Application Wizard, select Application Settings. Choose an Application type of DLL. Under Additional options, select Empty project. Choose Finish to create your project.

  3. Create a new resource script that contains the resources for the DLL (such as a string or a menu). Save the .rc file.

  4. On the Project menu, select Add Existing Item, and then insert the new .rc file into the project.

  5. Open Project Properties.

    • Select the Configuration Properties > Linker > Advanced property page.

    • Set the No Entry Point property to Yes (/NOENTRY).

    • Build the DLL.

History

  • 15th December, 2022: Initial version