我用这样取得, CComQIPtr<IHTMLDocument2,&IID_IHTMLDocument2> pHtmlDocument = m_web2.GetDocument();
if(!pHtmlDocument)
{
if(GET_DOORDATA == m_step)
{
PostMessage(WM_CONNECT_WEB,GET_DOOR_ERROR,0);
}
else if(GET_FTPDATA == m_step)
{
PostMessage(WM_CONNECT_WEB,GET_FTP_ERROR,0);
}
m_web2.Stop();
return;
}
CComQIPtr<IHTMLElement,&IID_IHTMLElement> pElementTemp;
BSTR bstrText;
pHtmlDocument->get_body(&pElementTemp);
pElementTemp->get_innerHTML(&bstrText);
CString strText(bstrText);但是对
[version]
1.0.28 = 1.0.28/bin.zip/11848075
1.0.28.1 = 1.0.28.1/bin.zip/6582090
1.0.29 = 1.0.29/bin.zip/2390348
1.0.30.1 = 1.0.30.1/bin.zip/2287794
的文件只能取得
[version] 1.0.28 = 1.0.28/bin.zip/11848075 1.0.28.1 = 1.0.28.1/bin.zip/6582090 1.0.29 = 1.0.29/bin.zip/2390348 1.0.30.1 = 1.0.30.1/bin.zip/2287794