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


	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);

  

URLDownloadToFile可以将服务器上的文件下载到本地
将http网页数据流保存到本地


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM