slender_bamboo

I'm using Visual Studio 2005 C++ compiler/linker.
My build had been working, but builds of both debug and release versions of my project now exit with an error when trying to embed the manifest into the output file.
When I change my Project settings to not embed the Manifest information, then it goes through OK, but I want the Manifest embedded. How can I fix this And what may have caused this

I've found this proposed solution. But it doesn't work for me.

This config can be found in Visual Studio's Options dialog (off the Tools menu). It's in the Projects and Solutions -> VC++ Directories page. This turns out to configure settings used both by VS and also by the command-line VCBuild. (I think VS just launches VCBuild to build your project.)

This options page has a row of buttons on the right hand side. One of these is a tick. Clicking that checks all of the configured items for validity. When I clicked this, it complained about three items:

%SystemRoot%\System32
%SystemRoot%
%SystemRoot%\System32\wbem

Those entries look out of place. They're using the %xxx% variable syntax you can use from the command line. But all the other entries use the $(xxx) convention. So I changed the entries to:

$(SystemRoot)\System32
$(SystemRoot)
$(SystemRoot)\System32\wbem

I don't see the "VC++ Directories page" in the dialog as described.
It seems to be a path problem, but how can I get VS to find the cmd.exe


Re: Visual C++ General Error PROJ003 -- Error Spawning cmd.exe

Simple Samples

If you select "Strat | Run" and then type cmd in the run dialog, do you get a command prompt






Re: Visual C++ General Error PROJ003 -- Error Spawning cmd.exe

slender_bamboo

Yes. I do that frequently. That is working.




Re: Visual C++ General Error PROJ003 -- Error Spawning cmd.exe

Simple Samples

Then try http://search.msdn.microsoft.com/search/Default.aspx query=prj0003&brand=msdn&locale=en-us&refinement=00&lang=en-us

There are many previous answers and the ones I looked at indicate that the VC Directories don't have the path for whatever is not found. For you, it seems strange that cmd.exe is not found. I think I saw a previous thread about this same problem for cmd.exe but I forget the solution; or probably I did not see a solution.






Re: Visual C++ General Error PROJ003 -- Error Spawning cmd.exe

slender_bamboo


Yes. There are a lot of people with similar problems, but I don't see any good solutions shown there.

I am OK with just getting a "quick and dirty" solution. I think the build is generally successful except for the last step of embedding the manifest information.

One person suggest putting the cmd.exe file somewhere in the path of the VS 2005 build:

"A Q&D fix is to copy c:\windows\system32\cmd.exe into the vc\bin folder of your VCE installation folder."

Is the bin folder a reasonable Q&D solution or could there be problems with this
I'm hoping this will work and will have a chance to try it a little bit later.




Re: Visual C++ General Error PROJ003 -- Error Spawning cmd.exe

Simple Samples

I did not see that answer but I don't have time looking at all of them. I did however see answers where the solution I suggested worked, and that fixes the problem to be the way it should be.






Re: Visual C++ General Error PROJ003 -- Error Spawning cmd.exe

slender_bamboo

I'm not sure what solution you're recommending. Could you please be more specific

I looked primarily at people with problems specifically with cmd.exe, although it looks like the error can happen with many different kinds of executables, like cl.exe.

Microsoft has this link and some people quote it, but it isn't very helpful:
http://msdn2.microsoft.com/en-us/library/d5cbdh4t.aspx

Thanks