RAD Studio
BRCC32.EXE, the Resource Compiler

BRCC32 is the command-line version of the resource compiler. It accepts a resource script file (.RC) as input and produces a resource object file (.RES) as output. 

RAD Studio provides a choice in resource compilers. You can choose to use either BRCC32 or RC (the Microsoft SDK resource compiler) on the ProjectOptionsResource Compiler dialog box.

BRCC32 [<options>] <filename>  

To display command line help, enter:  


Or add the help flag: 

brcc32 -h  

BRCC32 Command Options  

Takes instructions from the specified command file.  
-c <codepage>  
Uses the specified code page for resource translation. If -c is not used, the default ANSI code page is used.  
Defines a preprocessor symbol.  
Renames the output .RES file. (By default, BRCC32 creates the output .RES file with the same name as the input .RC file.)  
Adds one or more directories (separated by semicolons) to the include search path.  
Specifies default language.  
Indicates that the code page specified with the -c switch contains double-byte character set (DBCS) characters.  
This switch is ignored. It is included for compatibility with other resource compilers.  
Prints progress messages (verbose).  
Deletes the current include path.  
-h or ?  
Displays help.  
Builds a 16–bit resource.  
Builds a 32–bit resource.  

BRCC32 predefines common resource-related Windows constants such as WS_VISIBLE and BS_PUSHBUTTON. Also, two special compiler-related symbols are defined: RC_INVOKED and WORKSHOP_INVOKED. These symbols can be used in the source text in conjunction with conditional preprocessor statements to control compilation.  

For example, the following construct can greatly speed up compilation:

#ifndef WORKSHOP_INVOKED#include “windows.h” #endif 

The following syntax and options are supported for downward compatibility:

Builds 16–bit .RES files.  
Builds 32–bit .RES files.  
Builds Windows 3.1–compatible .RES files.  
Builds Win32–compatible .RES files.  
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!