I am just researched out in frustration.
No matter what I do I get an error trying to declare InternetOpen.
#include <WININET.h>
#include <windows.h>
int main()
{
/// Other includes were taken out to keep post small
HINTERNET hInternet = InternetOpen( "TestApp", INTERNET_OPEN_TYPE_PROXY, "www.oebelknives.com",0, INTERNET_FLAG_ASYNC );
//HINTERNET FTPOpen = InternetOpen("DRAXZ AUTH",INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL,0);
//IInternetOpen( "TestApp", INTERNET_OPEN_TYPE_PROXY, "prxy.server.com", 158.55.255.251, INTERNET_FLAG_ASYNC );
return 0;
};
No matter how I have changed this around I get a compiler error. I am using DEV-C++ and I couldnt find the WININET.h file so I copied it from my Visual Studio package to the lib directory for DEV. I have tried linking the library file, etc.. Maybe I am doing this wrong, but so far in three compilers this code fails to work the InternetOpen() is not recognized and generates a compile error every time.
Help would be very appreciated I'm burned out now as all my motivation in hopes to connect to my ftp server is blocked by this very problem, and I have searched this issue for hours and my eyes hurt from reading. So please if anyone can fill me that would be great.