Resource compiler switches

+rc {...} and -rc {...} blocks are used to define the resource compiler switches. For example:


+rc
{
    /d "_DEBUG"
    /l 0xc09 /x /v
    /I "thirdparty/gadgets/include"
}
+rc("WinCE")
{
    /d "_WIN32_WCE"
    /d "$(CEVER)"
    /d "UNDER_CE"
    /d "$(PLATFORMDEFINES)"
}

Command line switches


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

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

/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. I
                f the /q option is also set, this option is ignored, and the information in the RC
                Configuration file takes precedence.

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

/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

                English (Australia)         : 0xc09
                English (United States)     : 0x409


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

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

Example
-------

    /d "_DEBUG"
    /d "_WIN32_WCE=0x420"
    /d "UNDER_CE"
    /d "WIN32_PLATFORM_PSPC"
    /d "_UNICODE"
    /d "UNICODE"
    /l 0xc09
    /fo"./Pocket PC 2003 (ARMV4)/Debug/cxUtils/cxUtils.res"

vcproj keys
-----------

PreprocessorDefinitions                     /d[macro]
Culture                                     /l[num]
AdditionalIncludeDirectories                /I[path]
IgnoreStandardIncludePath                   Yes = /X
ShowProgress                                Yes = /v
ResourceFileName                            /Fo[file]

    Example
    -------

	Name="VCResourceCompilerTool"
	PreprocessorDefinitions="_DEBUG"
	Culture="1033"
	AdditionalIncludeDirectories="mypath"
	IgnoreStandardIncludePath="true"
	ShowProgress="true"
	ResourceOutputFileName="$(IntDir)/$(InputName).res"