Description: #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
}
To Search:
File list (Check if you may need any files):
diwnload\Debug\diwnload.exe
........\.....\diwnload.ilk
........\.....\diwnload.pch
........\.....\diwnload.pdb
........\.....\liu.obj
........\.....\vc60.idb
........\.....\vc60.pdb
........\diwnload.dsp
........\diwnload.dsw
........\diwnload.ncb
........\diwnload.opt
........\diwnload.plg
........\liu.cpp
........\Debug
diwnload