Connect to FTP server.
You need to downloaded files from this server ?
You need to use InternetOpenW() to get your "m_inet" handle, not InternetAttemptConnect().
See this article...
Using WinInet.dll for Data Exchange between Terminals via the Internet
- www.mql5.com
This article describes the principles of working with the Internet via the use of HTTP requests, and data exchange between terminals, using an intermediate server. An MqlNet library class is presented for working with Internet resources in the MQL5 environment. Monitoring prices from different brokers, exchanging messages with other traders without exiting the terminal, searching for information on the Internet – these are just some examples, reviewed in this article.
See also...
Metatrader5 MacOS - Problem with Wininet.dll and FtpGetFileW
- 2023.02.13
- www.mql5.com
Hello everyone, I recently coded an expert that allows me to automatically download various files from my FTP server and also upload my trading sta...
I'm trying to connect to an FTP server but it always fails. Above is what i'm doing. Has anyone already made that?