系统:win764
IDE:VC2010
#include<iostream>
#include<Windows.h>
#include<tchar.h>
#include<math.h>
#include <UrlMon.h> //URLDownloadToFile函数必须包含的链接静态库头文件
#pragma comment(lib, "urlmon.lib") //与<UrlMon.h> 头文件配套的库文件
using namespace std;
int main()
{
HRESULT hr = URLDownloadToFile(0,
_T("https://aod.cos.tx.xmcdn.com/group10/M0B/9B/95/wKgDaVZFEGHBpkmLABDoy-3OY1I073.m4a"),
_T("D:\\text.m4a"), 0,NULL);
if (hr== S_OK)
{
;
}
return 0;
}