Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Resource Compiler

  Switch on low bandwidth view
About Resource Files

To include resources in your Windows-based application with RC, do the following:

  1. Create individual files for your cursors, icons, bitmaps, dialog boxes, and fonts.
  2. Create a resource-definition script (.rc file) that describes the resources used by your application.
  3. Compile the script with RC. For more information, see Using RC (The RC Command Line).
  4. Link the compiled resource (.res) file into the application's executable file with your linker.

A script file is a text file with the extension .rc. The file can use single-byte, double-byte, or Unicode characters. The syntax and semantics for the RC preprocessor are similar to those of the Microsoft C/C++ compiler. However, RC supports a subset of the preprocessor directives, defines, and pragmas in a script.

The script file defines resources. For a resource that exists in a separate file, such as an icon or cursor, the script specifies the resource and the file that contains it. For some resources, such as a menu, the entire definition of the resource exists within the script.

The following topics describe the information a script file can contain:

Send comments about this topic to Microsoft

Build date: 5/7/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
edit:[propose=1,2,3,4,,...ect]=itemA      YOUR-Mark   |   Edit   |   Show History
Integer.01100010101110+itemA=0
Flag as ContentBug
itemB=1      YOUR-Mark   |   Edit   |   Show History
edit{profile}=itemB=1
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker