问题描述
- 窗口程序,httpfile中openUrl错误,弹出在“扩展版本中发生内部错误”
-
strURL = _T(""http://128.83.205.193/filelist_main.html?folder=01/"");htmlFile = (CHttpFile*) httpSession.OpenURL(strURL);if(htmlFile != NULL){ CString str; //while(htmlFile->ReadString((LPTSTR)sRecived1024) != NULL) while(htmlFile->ReadString(str)) { //strLine = sRecived; //strHtml += strLine; }}
解决方案
依然是没有找到发生错误的原因,但是选用WinHttp类解决了需求。
时间: 2024-11-03 07:39:42