Rules for Resource Statements

Each resource statement consists of one or more keywords, numbers , character strings, constants, or file names. You combine these to define the resource type, identifier, and data.

Resource statements have three basic forms:

Single-line statements Single-line statements consist of a keyword identifying the resource type , a number or character string that specifies the resource identifier, and a file name specifying the file containing the resource data. For example, this ICON statement defines an icon resource:
ICON 1 myicon.ico

The icon resource has the icon identifier 1. The file myicon.ico contains the icon data. The same example, using a character string is shown below:

ICON "MyIcon" myicon.ico
Multiple-line statements Multiple-line statements consist of a keyword identifying the resource type, a number or character string that specifies the resource identifier, and, between the BEGIN and END keywords, additional resource statements that define the resource data. For example, this MENU statement defines a menu resource:
MENU 1
BEGIN
      MENUITEM "Alpha", 101
      MENUITEM "Beta",  102
END

The menu identifier is 1. The menu contains two MENUITEM statements that define the contents of the menu.

In multiple-line statements, irc allows any level of nested statements. Nested statements let you define controls and other child windows for dialog boxes and windows. If a nested statement creates a child window or control, the parent and owner of the new window is the window created by the containing statement. FRAME statements may occasionally create frame controls whose parent and owner windows are not the same.

Directives Directives consist of the reserved character # in the first column of a line, followed by the directive keyword and any additional numbers, character strings, or file names.


Resource Compiler - An Overview
Resource Compiler - Resource Script Files
Resource Compiler - Syntax