C++网页数据流转为本地文件,URLDownloadToFile

1
2
3
4
CString strUrl = get_post_url(purl_get_version_url) + _T("/exportExcelFileWeb/api"); //url地址
CString strPrama;
strPrama.Format(_T("?programId=%d&orgCode=%s&fileName=%s"), m_id, org_code, name);
HRESULT hr = URLDownloadToFile(NULL, strUrl + strPrama, _T("F:\\test.xls"), 0, NULL);

  

1
URLDownloadToFile可以将服务器上的文件下载到本地<br>将http网页数据流保存到本地
posted @   曦花  阅读(846)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示