当前位置:网站首页>#pragma comment(lib,“urlmon.lib“)
#pragma comment(lib,“urlmon.lib“)
2022-06-13 01:22:00 【Zhao_| adult】
#include <tchar.h>
#include <iostream>
#include <string>
#include <urlmon.h>
/* * #pragma comment(lib,"urlmon.lib") effect : * Connect static library urlmon.lib To project : The effect is equivalent to : * Item attribute -- The connector -- Input -- Add dependencies to this lib; * * //! There is no need to urlmon.lib File or urlmon.dll Add file to project file */
#pragma comment(lib,"urlmon.lib")
#define URL "http://vfx.mtime.cn/Video/2019/02/04/mp4/190204084208765161.mp4"
#define SAVEPATH "C:\\Users\\ZhaoCheng\\Desktop\\ Tame a dragon .mp4"
using namespace std;
int main()
{
//_T(x)==>__T(x)==> L ## x //! take L And x come together
HRESULT hr = URLDownloadToFile(NULL,_T(URL), _T(SAVEPATH), 0, NULL);
if (hr == S_OK)
{
cout << "download finished!" << std::endl;
}
else
{
cout << "download failed!" << std::endl;
}
return 0;
}
边栏推荐
- Answer to matrix theory of Nanjing University of Aeronautics and Astronautics
- Downloading wiki corpus and aligning with multilingual wikis
- leetcode 142. Circular linked list II
- leetcode. 349. intersection of two arrays
- ES6解构赋值
- How the ET framework uses it to develop games
- Common skills of quantitative investment -- Drawing Part 1: Drawing stock closing price curve and ochl candle chart
- Pysmb usage
- Application advantages of 5g industrial gateway in coal industry
- MySQL connection query
猜你喜欢

Rasa对话机器人之HelpDesk (三)

spiral matrix visit Search a 2D Matrix

Traditional machine learning classification model predicts the rise and fall of stock prices

Leetcode question brushing 04 string

Most elements leetcode

Five classic articles worth reading

How to choose stocks? Which indicator strategy is reliable? Quantitative analysis and comparison of DBCD, ROC, vroc, Cr and psy index strategy income

leetcode 142. Circular linked list II

Pipeline流水线项目构建

Introduction to common activation functions
随机推荐
MySQL performance optimization
Loss calculation in pytorch
Characteristics of transactions -- atomicity (implementation principle)
Five classic articles worth reading (2)
Sliding window summary of TCP connections
Leetcode-12- integer to Roman numeral (medium)
How does Apple add QQ email?
Characteristics of transactions - persistence (implementation principle)
Happy string
leetode. 242. valid Letter heteronyms
Golang inline mechanism & go development test
Database query user mailbox
Leetcode-13- Roman numeral to integer (simple)
Quantitative investment traditional index investment decision vs Monte Carlo simulation method
Simple operation of MySQL database
The tle4253gs is a monolithic integrated low dropout tracking regulator in a small pg-dso-8 package.
Jenkins持续集成操作
Sonarqube local installation
Argparse command line passes list type parameter
5G工业网关在煤矿行业的应用优势