I am a programming student that is very out of practice. In fact I have not worked with c++ in over a year and I know I should not have let that happen but with my full course load I really did not get in much practice. I Decided I should get practicing again as after winter break I finally get to return to programming classes. Anyways I decided to go out and start some tutorials on windows programming. And I was trying to compile a simple hello world window.

here is my tiny bit of code
#include "stdafx.h"
#include<Windows.h>

int WINAPI WinMain (HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd)

{
MessageBox(NULL,
L"Hellow World!",
L"Just another Hello World Program!",
MB_ICONEXCLAMATION | MB_OK);

return 0;
}

I am unable to build it though
1>ClCompile:
1> stdafx.cpp
1> learntomakeawindow.cpp
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>c:\users\jimboslaptop\documents\visual studio 2010\Projects\learntomakeawindow\Debug\learntomakeawindow.exe : fatal error LNK1120: 1 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.68
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

So am I missing a library? I would really enjoy to learn what I am doing wrong. Microsoft's site was not to helpful at least the results I read. Thank you guys for your help