Including Resources in an Application

To include resources in your Win32-based application with RC from the command line, do the following:

  1. Use the visual development environment dialog editor or graphic editor to create a resource for each dialog or icon in your application. (For more information, see "Resources Editors" in the Visual C++ User's Guide.)
  2. Create a resource-definition file (also called a script) that describes all resources used by the application.
  3. Compile the script into a resource (.RES) file with RC.EXE (RC).
  4. Link the compiled resource files into the application's executable file.

You do not use RC to include compiled resources into the executable file or to mark the file as an application. The linker recognizes the compiled resource files and links them to the executable file.