General information
Category:
Internet applications
Environment versions
Network:
Windows 2000 Server
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only