>It soulldn't matter if you're using IP addres or URL. You may modify FTP class to use passive mode as shown in
FTP Classes & Passive Mode Message #
386142 and see if it helps.
>
>
>> I have used the ftp program by Robert and it worked fine. In the openinternet procedure we use the site name like
www.mysite.com. Please see below. Now suppose I want to use the ip address like ftp:\\x.x.x.x..the same thing does not work. I get the error that connection could not be established. I can put the same thing on the Iexplorer and it opens the ftp site. Is there a way to use the IP address also.
>>
>>IF sz_ftp.OpenInternet("mylogin", "mypassword", "
www.mysite.com",'21')
>>
Sergey
Wonder if you can help
If I go to the #386142 message it says
You can modify Robert's class to add the passive mode semantics yourself. 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.
I don't understand which of Robers't programs to modify or how to do the modification
Thanks
Colin
Specialist in Advertising, Marketing, especially Direct Marketing
I run courses in Business Management and Marketing