Sample code for 30+ languages & platforms
Delphi DLL

Get Version of Chilkat

Demonstrate how to find out the version of Chilkat at runtime.

Chilkat Delphi DLL Downloads

Delphi DLL
uses
    Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
    Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, SFtp, JsonObject;

...

procedure TForm1.Button1Click(Sender: TObject);
var
sftp: HCkSFtp;
chilkatVersion: PWideChar;
json: HCkJsonObject;

begin
// Most Chilkat classes include a Version property.
// To find the version of Chilkat, such as "9.5.0.94",
// instantiate the object and examine the Version property.

// For example:
sftp := CkSFtp_Create();
chilkatVersion := CkSFtp__version(sftp);
Memo1.Lines.Add(chilkatVersion);

// Most other Chilkat classes also have the Version property
// For example:
json := CkJsonObject_Create();
Memo1.Lines.Add(CkJsonObject__version(json));

CkSFtp_Dispose(sftp);
CkJsonObject_Dispose(json);

end;