SFTPClient demo application

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
nik_kp
Posts: 1
Joined: Tue 31 Jan 2012 15:29

SFTPClient demo application

Post by nik_kp » Tue 31 Jan 2012 15:46

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?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 02 Feb 2012 16:45

Please, add the ScTypes unit to the uses clause of the source file RandomForm.pas.

cboling
Posts: 24
Joined: Fri 12 Apr 2013 01:00

ScTypes breaks INT function

Post by cboling » Sun 14 Apr 2013 01:02

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.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: SFTPClient demo application

Post by Dimon » Mon 13 May 2013 09:13

Thank you for information. We will fix this problem in the next SecureBridge build.

Post Reply