Export (0) Print
Expand All

Using RC (The RC Command Line)

To start RC, use the following command.

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.

RC can generate separate resource files for applications that have both language-neutral and language-specific resources. Developers can use a resource configuration file or set command-line options to select which resource types and items are non-localizable resources of the language-neutral (LN) file and which are localizable resources of language-specific MUI files. For more information, see the Multilingual User Interface.

The options parameter can be one or more of the following command-line options.

Options

/?

Displays a list of command-line options.

/c

Defines a code page used by NLS conversion.

/d

Defines a symbol for the preprocessor that you can test with the #ifdef directive.

/fm mresname

RC creates one language-neutral .RES file and one language-dependent (MUI) .RES file using script-file. This option must be used together with the /fo resname option. RC names the language-neutral .RES file resname.res and names the language-dependent (MUI) .RES file mresname.res.

Windows Server 2003 and Windows XP/2000:  This option is not available without also using the LoadMUILibrary and FreeMUILibrary functions on an updated system.

/fo resname

RC creates a .RES file named resname using script-file.

If the /fm mresname option is also set, RC creates one language-neutral .RES file and one language-dependent (MUI) .RES file.

Windows Server 2003 and Windows XP/2000:  This option is not available without also using the LoadMUILibrary and FreeMUILibrary functions on an updated system.

/g1

If /g1, is set, RC generates a MUI file if the only localizable resource being included in the MUI file is a version resource. If /g1 is not set, RC will not generate a MUI file if the only localizable resource being included in the MUI file is a version resource.

/h

Displays the list of command-line options.

/I

Searches the specified directory before searching the directories specified by the INCLUDE environment variable.

/j loctype

Localizable resource types RC places into the language-dependent (MUI) .RES file. If the /q option is also set, this option is ignored, and the information in the RC Configuration file takes precedence.

Windows Server 2003 and Windows XP/2000:  This option is not available without also using the LoadMUILibrary and FreeMUILibrary functions on an updated system.

/k overtype

Overlapping resource types that RC places into both the language-neutral .RES and the language-dependent (MUI).RES files. The resource types that are specified by the /k option must be a subset of those that are specified by the /j option. For example, ?J2 ?J3 ?K3 specifies that RC places resource type 3 in both the language-neutral and language-dependent (MUI) files. If the /q option is also set, this option is ignored, and the information in the RC Configuration file takes precedence.

Windows Server 2003 and Windows XP/2000:  This option is not available without also using the LoadMUILibrary and FreeMUILibrary functions on an updated system.

/l langid

Specifies the 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

For more information, see Language Identifiers.

/n

Null terminates all strings in the string table.

/q Mui.RCConfig

An RC configuration file that follows the RC Configuration File format. The RC Configuration File format enables components to self-describe resource information such as resource versioning, MUI file path, resource types and items. This file specifies which resources go into the language-neutral .RES file and which resources go into the language-dependent (MUI) .RES file. This option, and the information provided in the RC Configuration file, override the command line options /j and /k.

Windows Server 2003 and Windows XP/2000:  This option is not available without also using the LoadMUILibrary and FreeMUILibrary functions on an updated system.

/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.

RC will not generate a MUI file in the following cases.

  • No localizable resources exist in the .rc file.
  • The only resource language id specified in the .rc file is neutral (0x0).
  • The .rc file has resources that are specified in more than one language. The exception is if the .rc file contains two languages, and one language is neutral (0x0), RC generates a MUI file.

For more information, see the following topics:

Related topics

Multilingual User Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft