Using VCL components

CBFS Storage OS edition doesn't require any external DLLs for the user-mode API, but you still need to ship and install the kernel-mode driver and optionally helper DLLs as described in Deployment topic.

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 CBFSStorageOS.dcu (<CBFS Storage>\VCL\Units\DelphiX) to the "source path" setting.

    To use CBFS Storage in your projects, you need to add "CBFSStorageBase" and "CBFSStorageOS" 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 CBFSStorageOS.dcu, CBFSStorageOS.obj and CBFSStorageOS.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 "CBFSStorageOS.hpp" (header files) to one or more of your files. Also, you need to add CBFSStorageOSBX.lib to the project.

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