Guys that is code copied from a book (Programming Windows 5th edition):
Can't link it with VS2010. What am I doing wrong?Code:#include <windows.h> int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) { MessageBox (NULL, TEXT ("Hello, Windows 98!"), TEXT ("HelloMsg"), 0) ; return 0 ; }
Error 1 error LNK2001: unresolved external symbol _WinMainCRTStartup
Thanks.