提个菜鸟问题,帮帮忙----编译出错
建了一个工程,加了一个源文件如下:
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
mouse_event(MOUSEEVENTF_MOVE,0,50000,50000,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTDOWN,0,50000,50000,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,0,50000,50000,GetMessageExtraInfo());
return 0;
}
目的是想在进程中让鼠标自动点击。
错误如下:Compiling...
鼠标自动操作 .cpp
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
test.exe - 2 error(s), 0 warning(s)