Incase you get a similar type of error when trying to compile visual studio 2008,
goto microsoft.com and download Microsoft platform SDK for windows 2003 SP1.
the link is:
Warning: do not download the file through the download button on the page. Scroll down and you will find some files for download with similar filename like PSDK-x86.exe and so on. Download this files. These are the right ones for you.
then go to your project, click on Tools -> Options ->
Projects and Solutions -> VC++ directories Add your microsoft platform SDK directory to the include and Lib options.
your done and ready to go.