Using RC (The RC Command Line)

To start RC, use the RC command.

Syntax

RC [options] script-file
 

The script-file parameter specifies the name of the resource-definition file that contains the names, types, filenames, and descriptions of the resources to be compiled. The options parameter can be one or more of the command-line options described in Parameters.

Parameters

/?
Displays a list of RC command-line options.
/d
Defines a symbol for the preprocessor that you can test with the #ifdef directive.
/foresname
Uses resname for the name of the .RES file.
/h
Displays a list of RC command-line options.
/i
Searches the specified directory before searching the directories specified by the INCLUDE environment variable.
/lcodepage
Specifies default language for compilation. For example, -l409 is equivalent to including the following statement at the top of the resource script file:
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US 
 

Alternatively, you use #pragma code_page(409) in the .RC file.

/n
Null terminates all strings in the string table.
/r
Ignored. Provided for compatibility with existing makefiles.
/u
Undefines a symbol for the preprocessor.
/v
Displays messages that report on the progress of the compiler.
/x
Prevents RC from checking the INCLUDE environment variable when searching for header files or resource files.

Remarks

Options are not case sensitive, and a hyphen (-) can be used in place of a slash mark (/). You can combine single-letter options if they do not require any additional parameters. For example, the following two commands are equivalent:

rc /V /X SAMPLE.RC 
rc -vx sample.rc 

For examples using RC, see the following topics: