home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / Chip_2002-05_cd1.bin / chplus / cpp / 3 / Tools.exe / brcc32.txt < prev    next >
Text File  |  1998-02-09  |  6KB  |  151 lines

  1. BRCC32 Help
  2.  
  3. There are several Borland command-line resource tools:
  4.  
  5. Resource compiler
  6.  
  7. BRCC32.EXE is the Borland resource compiler. It compiles resource script files (.RC files) and produces the binary .RES file.
  8.  
  9. Resource linkers
  10.  
  11. RLINK32.DLL is the Borland resource linker that binds resources, in .RES file form, to an .EXE file, and marks the resulting .EXE file as a Windows executable. RLINK32.DLL is accessed through TLINK32.EXE.
  12.  
  13. Resource shells
  14.  
  15. BRC32.EXE is a shell through which BRCC32 and RLINK32 (through TLINK32) can be started in a single step.
  16.  
  17. 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.
  18.  
  19. Syntax
  20.  
  21. BRCC32 [options] <filename>.RC
  22.  
  23. Command-line options
  24.  
  25. BRCC32 accepts these options:
  26.  
  27. Option    Description
  28.  
  29. @responsefile    Takes instructions from the specified command file.
  30. -c <code page>    Uses the specified code page for resource translation. If -c is not used, the default ANSI code page is used.
  31. -d<name>[=<string>]    Defines a preprocessor symbol.
  32. -fo<filename>    Renames the output .RES file. (By default, BRCC32 creates the output .RES file with the same name as the input .RC file.)
  33. -i<path>    Adds one or more directories (separated by semicolons) to the include search path.
  34.  
  35. -m    Indicates that the code page specified with the -c switch contains double-byte character set (DBCS) characters.
  36. -r    This switch is ignored. It is included for compatibility with other resource compilers.
  37. -v    Prints progress messages (verbose).
  38. -x    Deletes the current include path.
  39. -? or -h    Displays help.
  40. -16    Builds a 16-bit resource.
  41. -32    Builds a 32-bit resource.
  42.  
  43. 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:
  44.  
  45. #ifndef WORKSHOP_INVOKED
  46.  
  47. #include "windows.h"
  48.  
  49. #endif
  50.  
  51. Downward compatability
  52.  
  53. The following syntax and options are supported for downward compatability:
  54.  
  55. Syntax
  56.  
  57. BRCC [options] <filename>.RC
  58.  
  59. Command-line options
  60.  
  61. BRCC accept these options: 
  62.  
  63. Option    Description
  64.  
  65. -31    Builds Windows 3.1-compatible .RES files.
  66. -w32    Builds Win32-compatible .RES files.
  67.  
  68. The following example adds two directories to the include path and produces a .RES file with the same name as the input .RC file. 
  69.  
  70. brcc32 -i<dir1>;<dir2> <filename>.RC
  71.  
  72. This example produces an output .RES file with a name different from the input .RC file name:
  73.  
  74. brcc32 -fo<filename>.RES <filename>.RC
  75.  
  76. This example builds a 16-bit .RES file:
  77.  
  78. brcc32 -16 -fo<filename>.RES <filename>.RC
  79.  
  80. The Borland resource compiler (BRC32) is a resource compiler shell. It invokes BRCC32 and RLINK32, depending on the command-line syntax.
  81.  
  82. Syntax
  83.  
  84. brc32 [options] <filename>.RC [<filename>.EXE]
  85.  
  86. Command-line options
  87.  
  88. BRC32 accepts these options:
  89.  
  90. Switch    Description
  91.  
  92. -d<name>=string    Defines a symbol you can test with the #IFDEF preprocessor directive.
  93. -fo<filename>    Renames the .RES file.
  94. -fe<filename>    Renames the .EXE file.
  95. -i<path>    Adds one or more directories (separated by semicolons) to the include search path.
  96. -r    Creates a .RES file only. The compiled .RES file is not added to the .EXE.
  97. -v    Prints progress messages (verbose listing).
  98. -x    Directs the compiler to ignore the INCLUDE environment variable when it searches for include or resource files.
  99.  
  100. -16    Builds 16-bit .RES files.
  101. -32    Builds 32-bit .RES files.
  102. -Vd.d    Makes the .EXE file with Windows version provided (v3.1 is the default for 16-bit resources; -v4.0 is the default for 32-bit resources). Version options are listed in the following table.
  103.  
  104. Option    Bit    Resulting look
  105.  
  106. 3.1    16    Gives white background with a non 3-D look for Windows 3.1x, Windows 32s, or WinNT 3.1
  107. 4.0    16    Gives gray 3-D look for Windows 95 and WinNT 3.51
  108. 3.1    32    Gives white background with a non 3-D look for Windows 32s or WinNT 3.1
  109. 4.0    32    Gives gray 3-D look for Windows 95 and WinNT 3.51
  110.  
  111. The following switches are invalid when the -r switch is specified:
  112.  
  113. -k    Disables the contiguous preload of segments and resources in the .EXE file. Segments are kept in the order in which they appear in the .DEF file. (This option only applies to 16-bit resources.) 
  114. -t    Creates an application that runs only in protected mode (Windows Standard or 386 Enhanced mode). 
  115.  
  116. Downward compatability
  117.  
  118. The following sytax and options are supported for downward compatabliity
  119.  
  120. Syntax
  121.  
  122. brc [switches] <filename>.RC [<filename>.EXE] 
  123.  
  124. Command-line options
  125.  
  126. BRC accept these options: 
  127.  
  128. Option    Description
  129.  
  130. -31    Builds Windows 3.1-compatible .RES files.
  131. -w32    Builds Win32-compatible .RES files.
  132.  
  133. The following statement compiles the .RC file, creates a .RES file, and adds the .RES file to the executable file: 
  134.  
  135. brc32 <filename>.RC [<filename>.EXE]
  136.  
  137. BRC32 automatically seeks an .EXE file with the same name as the .RC file. You need to specify the .EXE file only if its name is different from that of the .RC file. 
  138. The following statement creates a .RES file, but not an .EXE file. If you name an .EXE file in the command line, BRC ignores it:
  139.  
  140. brc32 -r <filename>.RC
  141.  
  142. The following statement adds an existing .RES file to an executable file. The .EXE file name is required only if it differs from the .RES file name: 
  143.  
  144. brc32 <filename>.RES [<filename>.EXE] 
  145.  
  146. This example uses BRC32 to build a 16-bit Windows 3.1 compatible .RES file: 
  147.  
  148. brc32 -16 -v3.1 -fo<filename>.RES <filename>.RC
  149.  
  150. Copyright ⌐ 1998 Borland International.
  151.