Contents · Forum Home · StreamSec Tools 4.1.5.365 documentation

Add the library to a Delphi project

Give the Delphi compiler the units for your target platform, then read the version from the application you build. The paths below are for Delphi 13 on Windows.

Set the project search path

  1. Extract the release archive, keeping its directory structure. Open your project in Delphi, or create a Delphi Console Application.
  2. In Project > Options > Building > Delphi Compiler, select the Windows target and the configurations that should use the library. Edit Search path.
  3. For the source edition, add the extracted Source directory. For the Delphi 13 DCU trial, add Source\D13\win32\dcu for Win32 or Source\D13\win64\dcu for Win64. Set the path separately for each platform when building both.
  4. Check that an older copy of the units does not appear earlier on the project's or IDE's library search path.

Check which version the application links

Add this unit to the uses clause of a project unit:

uses
  stVersion;

Call this function from your application and display the result in an About box, write it to the console or inspect it in the debugger:

function LinkedStreamSecVersion: string;
begin
  Result := cStreamSecToolsVersion;
end;

Build and run the application for the selected platform. The four numbers returned by the function should match the version of the release you extracted. A unit-not-found error for stVersion means the compiler cannot find that unit on the active target's paths.

Install the components on the palette

If you want to place components on a form or data module, install the design-time package in Delphi as well.

Choose a component tier describes which component to put on the form. To open a connection from code, see Connect a first TLS client.

Reference

stVersion

Related tasks