18,356
社区成员
发帖
与我相关
我的任务
分享
URLDownloadToFile(NULL, _T("http://www.google.com"), _T("F:\\11.txt"), 0, NULL);
CInternetSession mySession;
CHttpFile pFile = mySession.OpenURL(_T("www.baidu.com"));
TCHAR buff[100 + 1];
CString strPageCode;
while(pFile->Read(buff, 100)
{
strPageCode += buff;
}
pFile.Close();
delete pFile;