Skip to main content

Installation

A short installation guide for advanced users

CAD VCL provides a set of DCU and OBJ/H units for each of the supported Delphi and C++ Builder versions. You don't need an installer to start working with CAD VCL.

  • Copy the compatible units from cadvcl_demo\Lib to the Lib folder of your project. There are no visual components that require installation.
  • Specify the path to the folder with the units in your IDE project options.

How to install CAD VCL to use it in Delphi?

CAD VCL provides a set of DCU units for each of the supported Delphi versions. You don't need an installer to start working with CAD VCL.

Follow the steps below:

  1. Create the Lib folder in your project.
  2. Determine the IDE version and the target CPU platform.
  3. Open the CAD VCL package. According to the information from the previous step, find the folder with the compatible units. For example:
    • \cadvcl\Lib\Lib 7\ provides DCUs for Delphi 7
    • \cadvcl\Lib\Lib11Alexandriawin64\ provides DCUs for Delphi 11 64-bit
  4. Move or copy the contents from this selected folder to the Lib folder created in the first step.
  5. To link CAD VCL to your project, go to Project → Options → Delphi Compiler, and then add the Lib path to Search path.

Search path

Rad Studio 11. Delphi Compiler

  1. To use CAD VCL globally in all your projects, go to Tools → Options → Language → Delphi → Library (Tools → Options → Environment Options → Delphi Options → Library), and then add the Lib path to Library path.

Library path

Rad Studio 11. Library

  1. Finally, write the {$INCLUDE CADSoftTools.INC} compiler directive in your code.
Note

The path is already defined in the demo projects. Just copy the folder with the compatible units into \cadvcl\Delphi\Lib\ and run the demo projects.

You have completed the installation.


How to install CAD VCL to use it in C++ Builder?

CAD VCL provides a set of OBJ/H units for each of the supported C++ Builder versions. You don't need an installer to start working with CAD VCL.

Follow the steps below:

  1. Create the Lib folder in your project.
  2. Determine the IDE version and the target CPU platform.
  3. Open the CAD VCL package. According to the information from the previous step, find the folder with the compatible units. For example:
    • \cadvcl\Lib\Lib2006\ provides OBJ for C++ Builder 2006
    • \cadvcl\Lib\Lib11Alexandriawin64\ provides OBJ for C++ Builder 11 64-bit
  4. Move or copy the contents from this selected folder to the Lib folder created in the first step.
  5. To link CAD VCL to your project, go to Project → Options → C++ Shared Options, and then add the Lib path to Include path and Library path.

Include path

Rad Studio 11. C++ Shared Options

  1. To use CAD VCL globally in all your projects, go to Tools → Options → Language → C++ → Paths and Directories, and then add the Lib path to System Include path and Library path:

Library path

Rad Studio 11. Paths and Directories

Tip

In newer C++ Builder versions, the path settings are separated for the classic compiler and the modern compiler.

Note

The path is already defined in the demo projects. Just copy the folder with the compatible units into \cadvcl\C++ Builder\Lib and run the demo projects.

You have completed the installation.


How to fix the File not found error?

After completing all the installation steps and starting coding, you may encounter the "File not found" error. It means that the compiler has not found the CAD VCL content. This error occurs because the compiler has not found the CAD VCL units. The reasons may be as follows:

  • The selected CAD VCL units are incompatible with your Delphi or C++ Builder version.
  • The path to the library is wrong or missing.

In case of the first reason:

  1. Make sure that you have determined the IDE version and the target processor platform correctly.
  2. Review the \cadvcl\Lib\ folder and find the folder with the compatible units again.
  3. If you can't find the folder for your IDE version, contact our technical support to get the compatible units.
  4. Repeat the installation process with the folder which contains the compatible units.

In case of the second reason:

  1. If you haven’t added the path, add it according to the installation instructions.
  2. Make sure that the path is correct.

Do you still see this error? Contact the technical support.


How to get more information about CAD VCL?

To save your time and make your software development easier, we provide the detailed CAD VCL Help that also includes sample programs.

The CAD VCL help system is available online. We also deliver it with the package.

We offer free support within the major version to our customers, so we will be happy to answer all your questions on the implementation.