Greetings all i am leaving the world of C/C++ Console and learning Windows applications I am using Visual C/C++ 6.0
My proplem is ive written a simple Hello World probram (follows) It will compile and excute with no problems at first but if I save the project and open it, it will still compile ok but it gives me Link errors (following) I appreciate any help this concern!! Thanks in advance
Link errors are as follows
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Dgraphics2.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Dgraphics2.exe - 2 error(s), 0 warning(s)
Code is as follows
#include <windows.h>
#include <windowsx.h>
#define win32_lean_and_mean
int WINAPI WinMain (HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpcmdline,
int ncmdshow)
{
MessageBox(NULL, "Whats up World!!",
"My First Windows Program", 3);
return(0);
}