Author Topic: how to use TwclFTPClientx.Put in Delphi ?  (Read 2140 times)

hamid

  • Guest
how to use TwclFTPClientx.Put in Delphi ?
« on: July 04, 2009, 08:46:25 AM »
hello. excuse me for my poor english language.

i work WCL NET in delphi 2006 .

i have a problem in use Put procedure for file transfer.

Put in delphi :
TwclFTPClientx.Put(const ObjectName: WideString; var ObjectData: PSafeArray);

i can't use PSafeArray(in delphi) for stream(in C#).

please give me an example for Put in Delphi.

thank you very much.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3055
  • Karma: 1000
    • Soft Service Company
Re: how to use TwclFTPClientx.Put in Delphi ?
« Reply #1 on: July 04, 2009, 10:09:43 AM »
Hi,

COM edition you use is developed for using with VB. Use .NET Edition for Delphi 2006 .NET or VCL Edition for standard Delphi 2006/CBuilder 2006.
« Last Edit: July 04, 2009, 11:39:01 AM by Mike Petrichenko »

hamid

  • Guest
Re: how to use TwclFTPClientx.Put in Delphi ?
« Reply #2 on: July 04, 2009, 12:33:02 PM »
i use .Net edition.
my question is :
give me an example for put procedure in delphi.
because i can't understand how to use PSafeArray in parameter of this procedure :
TwclFTPClientx.Put(const ObjectName: WideString; var ObjectData: PSafeArray);

i can use this procedure in C# because parameter is stream but in delphi is PSafeArray.

help me. ???

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3055
  • Karma: 1000
    • Soft Service Company
Re: how to use TwclFTPClientx.Put in Delphi ?
« Reply #3 on: July 04, 2009, 12:53:19 PM »
If TwclFTPClientx is in your code then it is not .NET edition or old WCL 6.0. Use the latest WCL 6.5.x .NET Edition. WCL 6.0.x and WCL 6.2.x is not supported since 01.07.2009.

 

Sitemap 1 2 3 4 5 6 7 8 9