18,356
社区成员
发帖
与我相关
我的任务
分享
CInternetSession session;
CHttpFile* pFile = (CHttpFile*)session.OpenURL(_T("http://news.sohu.com/20110106/n278699343.shtml"));
CString buf;
CString strText;
while(pFile->ReadString(buf))
{
strText += buf;
}
pFile->Close();
delete pFile;
pFile = NULL;
session.Close();
AfxMessageBox(strText);