Page 1 of 1

SFTPClient demo application

Posted: Tue 31 Jan 2012 15:46
by nik_kp
Hi all,
i've just downloaded and installed the demo version of SecureBridge for my Delphi 7, and I was trying to take a look at the SFTPClient demo application, but the compile give me some errors.
First of all, I receive the "Undeclared identifier: 'TBytes'" error in the RandomForm.pas unit, on row 23 (this declaration: FData: TBytes; ).
If I create at the top of the unit the type TBytes as "array of Byte", compiling I get a new error: "There is no overloaded version of 'Randomize' that can be called with these arguments" in the DemoForm.pas unit, on row 271 (this code: Random.Randomize(fmRandom.Data); ).
What's goin' on? Why these errors, and how can I solve them?

Posted: Thu 02 Feb 2012 16:45
by Dimon
Please, add the ScTypes unit to the uses clause of the source file RandomForm.pas.

ScTypes breaks INT function

Posted: Sun 14 Apr 2013 01:02
by cboling
I just added the ScTypes unit to the uses clause to try to get rid of a complaint about TBytes and something else, and found that it broke the standard INT function in Delphi 5.

To reproduce:
  • Create a new project
    Double-click the form and add these two lines of code to the appropriate spot:
    • var r: extended;
      r := int(r);
    Compile and see no errors.
    Add ScTypes to the Uses clause of the form
    Compile and see Invalid Typecast error.

Re: SFTPClient demo application

Posted: Mon 13 May 2013 09:13
by Dimon
Thank you for information. We will fix this problem in the next SecureBridge build.