husiana | Code :
- hInternet = ::InternetOpen("BOB", INTERNET_OPEN_TYPE_PRECONFIG , NULL, NULL, 0);
- if(!hInternet)
- MessageBox(Dlg,"Internet open error! Test your system and try again.","42",MB_OK | MB_ICONERROR);
- hHttp = ::InternetOpenUrl(hInternet, "http://www.tomshardware.fr/", NULL, NULL, INTERNET_FLAG_RELOAD, Context);
- if(!hHttp)
- MessageBox(Dlg,"URL open error!","42", MB_OK | MB_ICONERROR );
- if(hInternet)
- InternetCloseHandle(hInternet);
- bRet = ::InternetReadFile(hHttp, buff, 1024, &dwRead);
- if(hInternet)
- InternetCloseHandle(hInternet);
- if (bRet == FALSE)
- {
- dwErr = GetLastError();
- fichier_sortie << ">>>>>> " << dwErr << " <<<<<<\n";
- MessageBox(Dlg,"buff pourit","42", MB_OK);
- }
|
ouais, il est "bien" viré... |