Error Result 1 Returned from 'C:\WINDOWS\system32\cmd.exe'

Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'

I keep getting the following error message every time I try to run or build a C++ application in Visual Studio 2008:

Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'.

It only comes up with a C++ program. VB seems to be fine.

The problem was in manifest file and here is the solution

Project Properties --> Manifest Tool --> Input and Output

Change value of "Embed Manifest" from YES to NO.