How To Build a .DLL From a .RC Script¶
1) Get Visual C++ Express from Microsoft (the Express version is free):
2) To create a resource-only DLL, you create a new Win32 DLL (non-MFC) project, add your script, then build the project.
- File / New / Project
- Select Win32 Project in the New Project dialog.
- Give the Project a name (usually the name of the DLL).
- Click Next to begin the Win32 Application Wizard.
- Specify a DLL project type in the Win32 Application Wizard.
- Click Finish.
- Project / Preferences from the menu to get the Property Pages for your project.
- Configuration Properties / Linker / Advanced
- Specify the /NOENTRY linker option. /NOENTRY prevents the linker from linking a reference to _main into the DLL; this option is required to create a resource-only DLL.
- Project / Add Existing Item
- Navigate to your .rc script.
- Click Add to add your .rc script to the project.
- Choose Release in the Solution Configuration box.
- Build the Solution.
- *Look in the Output Window to see whether your build was successful.
Your .DLL should now be in the Release folder as shown in the Output Window.
Last edited by Bullwinkle 2010-06-04
Tips on using the-Starport Forge
Adventures of Trent home page