Creating a Resource-Only DLL





5.00/5 (2 votes)
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:
- Select Win32 Project in the New Project dialog box. Enter the project and solution names, and choose OK.
- 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.
- Create a new resource script that contains the resources for the DLL (such as a
string
or a menu). Save the .rc file. - On the Project menu, select Add Existing Item, and then insert the new .rc file into the project.
- 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