Hi guys!

I have a windows project that just shows a window. I'm trying to compile it under win2k, but it doesn't work...

I get an error on the following line:

Code:
PAINTSTRUCT ps;     // generic paintstruct
and sometime:

Code:
HDC hdc;
The compiler gives me the following error:

--------------------Configuration: PROG5_2 - Win32 Debug--------------------
Compiling...
PROG5_2.CPP
c:\documents and settings\administrator\skrivebord\source\gpchap5\prog5_2.cpp(77) : warning C4101: 'ps' : unreferenced local variable
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/PROG5_2.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

PROG5_2.exe - 2 error(s), 1 warning(s)


*************************************

Anyone know whats wrong...

The code works fine on win98.....