I'm trying to connect to an FTP server, but I am getting the error ERROR_INTERNET_NAME_NOT_RESOLVED. Using the exact same address, username, and password, I can log in using IE. Here is my code:
Code:
hNet=InternetOpen("ipupdate",INTERNET_OPEN_TYPE_DIRECT,
NULL,NULL,NULL);
hFTP=InternetConnect(hNet,"ftp://members.optushome.com.au",
INTERNET_DEFAULT_FTP_PORT,
"username","password",INTERNET_SERVICE_FTP,
NULL,NULL);
InternetOpen() returns a valid handle, but InternetConnect() returns NULL. Is there anything in the function calls that would cause this error?