Introduction - If you have any usage issues, please Google them yourself
#include<windows.h>
#include<urlmon.h>
#include<process.h>
#include<Shellapi.h> //这个头文件里有ShellExecute的定义
#pragma comment (lib,"Urlmon.lib")
int main()
{
URLDownloadToFile(NULL,"http://www.baidu.com/img/baidu_sylogo1.gif","D:\\logo.gif",0,NULL)
ShellExecute(0,"open","D:\\logo.gif",NULL,NULL,SW_SHOW)
exit(0)
return 0
}