Including Resources in an Application
To include resources in your
Win32-based application with RC from the command line, do the following:
- 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.)
- Create a resource-definition file (also called a script) that describes
all resources used by the application.
- Compile the script into a resource (.RES) file with RC.EXE (RC).
- 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.