Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send file ftp
Message
From
01/11/2005 12:56:58
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
01/11/2005 10:49:28
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064010
Message ID:
01064112
Views:
25
I'd recommend you get the West Wind client tools.

>Hi Mike,
>
>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("olympic", "ffff250", "64.235.36.11", "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
Previous
Reply
Map
View

Click here to load this message in the networking platform