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.