If you have ported a native application built with a previous version of Visual Studio, and you built that application against version 6.x of the Platform SDK, then you will - most likely - encounter this problem.
The fix is as follows:
Note that you may read online that simply changing the project's inc/lib directories will solve this problem. It will not. You have to change the XML file. The problem is that VS2010 imports the default inc/lib settings from VS200x, and stuffs them away in this XML file. But the 2010 tools don't support the nologo option that the older SDK used, and barf on it in a terminal fashion. So you have to remove the 6.x references and allow the system to use the 7.0 files included with the VS2010 install.