Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to download all files from a folder of an FTP site
Message
From
31/10/2005 15:56:19
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01058604
Message ID:
01063812
Views:
30
Hi Sergey,

I need to ftp a file in my app.

I downloaded ref #9442, ftp_class.zip.

I did this as well.
To use FPT functions in passive mode, pass in the value INTERNET_FLAG_PASSIVE in the dwFlags parameter (the 7th parameter) in the call to InternetConnect. INTERNET_FLAG_PASSIVE like all other WinInet constants is defined in WinInet.h. It's value is 0x08000000, or 134217728.

It's not working.
I'm not getting an internet connection.

Does this look ok?

sz_ftp.OpenInternet("olympik", "floc250", "64.235.36.31", "21")

and this?
* 10.31.2005 df. Pass this as the 7th parameter for InternetConnect().
#define INTERNET_FLAG_PASSIVE 134217728

lnConnect_Handle = InternetConnect(THIS.nInet_Handle, (THIS.cIPAddress), VAL(lcPort), ;
(THIS.cUserName), (THIS.cPassword), INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE, 0)


lnConnect_Handle is coming back zero.
So I get:
MessageBox("No Connection Made", 64, "FTP Message")


Do you know what the problem is?
I appreciate your help.
Thanks,
Deb
Happy Halloween................
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform