Tips for Using C++ Builder

Each tip below shows the version of Builder that I tested it on. The operating system is Windows 10.

How to make a console-mode program

Tokyo 10.2

  1. Select File | New | Other
  2. Select the Console Application icon
  3. In the dialog box that comes up, set the fields to the values you want. Press F1 to get help for the dialog box
  4. Press the OK button to close the dialog box

Choose the compiler for a project

Tokyo 10.2

  1. Select Project | Options or right-click on the project node in the Project Manager and select Options
  2. In the left pane, select C++ Compiler
  3. In the right plane select the configuration that you want your compiler choice to apply to from the Target drop-down box
  4. Under the Classic Compiler node, find the check box “Use ‘classic’ Borland compiler”
  5. To use the original Borland compiler, check the box. To use the CLANG-based compiler, uncheck the box
  6. Press the OK button to close the dialog box

Add an include path to the project

Tokyo 10.2

  1. Select Project | Options or right-click on the project node in the Project Manager and select Options
  2. In the right plane select the configuration that you want your compiler choice to apply to from the Target drop-down box
  3. In the left pane, select the C++ (Shared Options) node and then select the “Include path” line in the right plane. Alternatively, select the Directories and Conditionals node under the C++ Compiler node in the left plane and then select the Include File Search Path line in the right plane
  4. Press the ellipsis (…) button in the right side of the selected line
  5. Click on the folder icon then browse to the folder you want to add to the include path, then click on the button Select Folder
  6. Press the Add button, then the OK button repeatedly to close all of the dialog boxes

Include a conditional define in a project

Tokyo 10.2

  1. Select Project | Options or right-click on the project node in the Project Manager and select Options
  2. In the right plane select from the Target drop-down box the configuration that you want your conditional define to apply to
  3. In the left pane, select the C++ (Shared Options) node and then select the “Conditional defines” line in the right plane. Alternatively, select the Directories and Conditionals node under the C++ Compiler node in the left plane and then select the Conditional Defines line in the right plane
  4. Press the ellipsis (…) button in the right side of the selected line
  5. Type the conditional you want to define in the empty box in the middle
  6. Press the Add button, then the OK button repeatedly to close all of the dialog boxes