### Explanation of Command-Line Options (OS/2)

The -d option is useful for passing conditional-compilation flags to the preprocessor. The <defname> is a sequence of letters, underscore symbols, and digits which does not begin with a digit. The <value > is a sequence of symbols which you want to substitute for the <defname> wherever it appears in the input script file. If you omit the = <value>, the <defname> will be set to the default value 1. For example, the option -d _3d is equivalent to including at the beginning of the input file this line:

>     #define _3d 1

You can use the -d option up to 8 times to define different macros from the command line.

The -i option defines paths for files to be included with the source file. The <pathspec> is any path where you want RC to search for files included by the preprocessor #include directive. The <pathspec> must not contain embedded blanks. To include more than one path, code the -i option once for each path. The preprocessor reads paths from the INCLUDE environment variable after reading the paths you provide with -i options.

The -r option will create in your current directory a binary resource file containing the resources you compile. The -r option takes no argument. The name given to this binary resource file will be the same as the name of the input resource script file except that the extension will be .RES instead of .RC. When you use -r, you do not bind resources to an executable file.

The -p option is used only when binding resources to an executable. It positions resources so that they do not cross 64K boundaries.

The -cp or -k option is used to specify code page information for the resource script file to be compiled. The <codepage> is a numeric code page value. For a list of code page values , see the Code Page Table. Instead of specifying a code page, you may provide a sequence of pairs of DBCS lead byte code points . Each pair of numbers gives the lower and upper limit of a range of code points which are to be interpreted as DBCS lead bytes. The code page must be valid for the country code in effect: either the default country code or the country specified using the -cc option.

The -cc option allows you to specify a country code for the resource script file to be compiled. The <countrycode> is a number from the table under COUNTRY CODE in the Code Page Table page.

The -x option is used only when binding resources to an executable. It causes resources to be compressed. These resources will be decompressed automatically when the resource is accessed.

-x with no number defaults to -x1.

The -n option (nologo) causes Resource Compiler to suppress the display of the logo and the copyright information.

The -w2 option causes Resource Compiler to suppress the display of all warning and informational messages. Errors and fatal errors continue to be displayed.

The -h and -? options cause Resource Compiler to display a summary of the available options and environment variables that it uses. When you use these options, Resource Compiler does not read any input files. Entering "RC" on the command line with no operands displays the same information.

The -x1 option causes Resource Compiler to use the compression algorithm that is compatible with OS/2 2.0, 2.1, and 2.11, as well as OS/2 3.0 and later.

The -x2 option causes Resource Compiler to use a compression algorithm that is compatible with OS/2 3.0 and later. The -x2 option will produce smaller executable files that can access resources faster.

Resource Compiler - An Overview
Resource Compiler - Syntax
Resource Compiler - An Overview
Resource Compiler - Syntax