ところてん #658(2007/07/12 13:49 GMT) [ C++ ] Rating0/0=0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#pragma comment(lib,"wininet.lib") #include <stdio.h> #include <windows.h> #include <wininet.h> int main() { HINTERNET hInet; HINTERNET hFile; hInet = InternetOpenA("TEST",INTERNET_OPEN_TYPE_DIRECT, NULL,NULL,0); hFile = InternetOpenUrlA(hInet, "http://ja.doukaku.org/feeds/comments/", NULL,0,INTERNET_FLAG_RELOAD,0); unsigned char buf[1024]; DWORD dwSize; do{ InternetReadFile(hFile, buf, 1023, &dwSize); buf[dwSize] = '\0'; printf("%s\n", buf); }while(dwSize); getchar(); }
Rating0/0=0.00-0+
[ reply ]
ところてん
#658()
[
C++
]
Rating0/0=0.00
Rating0/0=0.00-0+
[ reply ]