Using VCL components

To avoid problems with compilation of projects, which use CBFS Storage, you need to setup paths as described. By default the paths are set during installation. However if the settings were changed or installation didn't work as expected, you can use the below procedure to setup paths.

  • Delphi:
    Before using CBFS Storage in your projects, you need to tune-up global paths in Delphi IDE. Paths are set in Main menu->Tools->Environment options. Environment Options dialog appears. Find Library or Directories tab in the page control and you will find directories configuration page.
    • Set the "output directory", "unit output directory" and "BPL output directory" (if present) settings for the package to the folder, where the compiled packages will be stored after compilation.
    • add the name of the folder with CBFSStorage.dcu (<CBFS Storage>\VCL\Units\DelphiX) to the "source path" setting.

    To use CBFS Storage in your projects, you need to add "CBFSStorageBase" and "CBFSStorage" to the Uses clause of one or more of your units. Then you can create CBFS Storage objects and use them.

  • C++Builder:
    Before using CBFS Storage in your projects, you need to tune-up global paths in your development tool. Paths are set in Main menu->Tools->Environment options. Environment Options dialog appears. Find Library or Directories tab in the page control and you will find directories configuration page.
    • Set the "output directory", "unit output directory" and "BPL output directory" (if present) settings for the package to the folder, where the compiled packages will be stored after compilation.
    • add the name of the folder with CBFSStorage.dcu, CBFSStorage.obj and CBFSStorage.hpp (<CBFS Storage>\VCL\Units\BuilderX) to the "include path" and "library path" settings.

    To use CBFS Storage in your projects, you need to include "CBFSStorageBase.hpp" and "CBFSStorage.hpp" (header files) to one or more of your files. Also, you need to add CBFSStorageBX.lib to the project.

See How To Start using the API topic for further instructions.