Page 1 of 1

KeyStorage disappear

Posted: Thu 18 Jun 2020 13:20
by kaffeburk
Hello,

I'm trying to add som functionality to TScFileStorage with an Interposer class, but i fail. When the new class start to exist the TScSSHClient lose its KeyStorage property. Any workaround?

[dcc64 Error] Unit1.pas(33): E2003 Undeclared identifier: 'KeyStorage'

Code: Select all

unit Unit1;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Scbridge, ScSSHClient;

type
    TScSSHClient = Class(Scbridge.TScFileStorage)// Interposer class
    End;

  TForm1 = class(TForm)
    ScSSHClient1: TScSSHClient;
    ScFileStorage1: TScFileStorage;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
      ScSSHClient1.KeyStorage:=Nil;
end;

end.

Re: KeyStorage disappear

Posted: Fri 19 Jun 2020 10:37
by ViktorV
The use of Interposer classes is an undocumented feature of the Pascal programming language, while we only support documented functionality of the IDE in SecureBridge. We are happy to answer any questions you may have about our products, but we don't advise on using Delphi itself. Please refer to Embarcadero documentation for possible workarounds or ask your question on specialized forums.
Note that an Interposer class is a class that has the same name as the class you'd like to change, therefore you should probably try using TScFileStorage = Class(Scbridge.TScFileStorage).

Re: KeyStorage disappear

Posted: Fri 19 Jun 2020 16:31
by kaffeburk
Agre. Thanx.

Re: KeyStorage disappear

Posted: Mon 22 Jun 2020 14:30
by ViktorV
Thank you for the interest to our product.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.