A resource script file consists of one or more resource statements that define the type, identifier, and data for each resource. For example, the following multiple -line resource statement defines a menu to be used with an application:
MENU 1 BEGIN MENUITEM "Alpha", 101 MENUITEM "Beta", 102 END
A resource script file is a text file you can create by using an ordinary text editor. Since some resources may contain binary data that cannot be created using a text editor, many resource statements let you specify additional files to include when compiling the resource script file. For example, the following statement defines an icon and specifies the file myicon.ico as containing the icon data:
ICON 1 myicon.ico
Directives
A resource script file can also contain
directives. For example, the following directive includes the
header file menu.h when irc processes the
resource script file:
#include "menu.h" MENU WND_MAIN BEGIN MENUITEM "~Exit", MI_EXIT END
By default, resource script files have the .rc filename extension.
Note: Although the Resource Compiler is C-like in syntax, it is not a C compiler. Use only valid Resource Compiler statements.
Resource Compiler -
An Overview
Resource Compiler -
Rules for Resource Statements
Resource Compiler -
Syntax