login about faq

Hello,

I have just downloaded chilkat-9.5.0-delphi.zip to use it with Windev. I have choosen to use the dll and not the ActiveX to avoid installation.

I can connect to the FTP server, but I can't get any file.

Here is a piece of code that give strange result :

i est un entier //integer j est un entier k est un entier l est un entier Err est une chaƮne UNICODE sur 255 //unicode string

i = AppelDLL32("ChilkatDelphiXE","CkFtp2_GetDirCount",:HCkFtp2) //i=5 : 3 dir and 2 files, that's correct POUR j=0 _A_ i-1 k = AppelDLL32("ChilkatDelphiXE","CkFtp2__getFilename",:HCkFtp2,j) Transfert(&Err,k,255*2) //Err contains the name of the dir or the file, works fine //wrong l value is always -1 l = AppelDLL32("ChilkatDelphiXE","CkFtp2_GetSizeByName",:HCkFtp2,&Err)
FIN

And if I try to use GetFile, result is always 0.

Any idea to find the problem ?

Thanks

Daniel

asked Jun 03 '15 at 21:16

DanielG's gravatar image

DanielG
16


I answer to myself. I finally found the problem : I didn't use the UnlockComponent method.

Daniel

link

answered Jun 04 '15 at 06:56

DanielG's gravatar image

DanielG
16

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×131

Asked: Jun 03 '15 at 21:16

Seen: 509 times

Last updated: Jun 04 '15 at 06:56

powered by OSQA