Freelancer Community Network

How To Build a .DLL From a .RC Script

1) Get Visual C++ Express from Microsoft (the Express version is free):

http://www.microsoft.com/express/Downloads/#2010-Visual-CPP

2) To create a resource-only DLL, you create a new Win32 DLL (non-MFC) project, add your script, then build the project.

Detailed Steps:

  • 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

.

.

.

.

HowToBuildDllFromRc02.jpg (60.6 KB) Bullwinkle, 06/05/2010 03:39 AM

HowToBuildDllFromRc03.jpg (54 KB) Bullwinkle, 06/05/2010 03:39 AM

HowToBuildDllFromRc01.jpg (175 KB) Bullwinkle, 06/05/2010 03:52 AM

HowToBuildDllFromRc04.jpg (209 KB) Bullwinkle, 06/05/2010 03:59 AM

HowToBuildDllFromRc05.jpg (72.1 KB) Bullwinkle, 06/05/2010 03:59 AM

HowToBuildDllFromRc06.jpg (73 KB) Bullwinkle, 06/05/2010 04:38 AM

HowToBuildDllFromRc07.jpg (43.9 KB) Bullwinkle, 06/05/2010 04:38 AM

HowToBuildDllFromRc08.jpg (79.6 KB) Bullwinkle, 06/05/2010 04:38 AM

HowToBuildDllFromRc09.jpg (77.5 KB) Bullwinkle, 06/05/2010 04:38 AM

HowToBuildDllFromRc10.jpg (226 KB) Bullwinkle, 06/05/2010 04:38 AM