您的位置:首页 > 其它

使用MFC获取网页内容

2009-02-18 13:51 399 查看
#include <afxinet.h>       //for WinInet

CInternetSession httpSession;
CInternetFile* htmlFile =

(CInternetFile*) httpSession.OpenURL("http://192.168.1.77:8000/cgi-bin/emvideo.cgi");
CString content;
CString m_html;
while (htmlFile->ReadString(content))
{
m_html += content + " ";
}
htmlFile->Close();
httpSession.Close();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: