Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: hamid on July 04, 2009, 08:46:25 AM

Title: how to use TwclFTPClientx.Put in Delphi ?
Post by: hamid 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.
Title: Re: how to use TwclFTPClientx.Put in Delphi ?
Post by: Mike Petrichenko 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.
Title: Re: how to use TwclFTPClientx.Put in Delphi ?
Post by: hamid 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. ???
Title: Re: how to use TwclFTPClientx.Put in Delphi ?
Post by: Mike Petrichenko 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.