Groups | Blog | Home
all groups > visual studio .net act > february 2006 >

visual studio .net act : Bug in VC++2005 running an "embeded" devenv cmd?



Viviana Vc
2/21/2006 6:21:56 PM
Hi all,

I upgarded to VC++ 2005 and I'm having a problem that didn't occur on
VC++ 2003. I would like to know if there is a way to fix this.

The scenario is like this:
- Create a project e.g. resdll.sln/vcproj, that is a normal application
that might also include resources
- Create a batch file in the same directory like where the above .sln
file is e.g. mybat.bat containing the following line:
devenv <preferable-full-path-or-a-correct-relative-path>\resdll.sln
/rebuild release /out release/BuildLog.htm
- Create another new project e.g. MyTest.sln/vcproj that contains
whatever dummy file, e.g. empty dummy.h file. Right click on the dummy.h
file and at the Custom Build Step add the following line:
call <preferable-full-path-or-a-correct-relative-path>\mybat.bat.
You'll also need to add something in the Outputs filed, so just add
whatever.dummy.

Problem: if I try to build the MyTest project I always get the error:
error PRJ0003 : Error spawning 'C:\Programming\Microsoft Visual Studio
8\VC\bin\cl.exe'.

or in case it's a resource dll I get:
error PRJ0003 : Error spawning 'C:\Programming\Microsoft Visual Studio
8\VC\bin\rc.exe'.

(of course cl.exe and rc.exe are in the right place:
C:\Programming\Microsoft Visual Studio 8\VC\bin\)

Notes:
- If I run just the mybat.bat file in a cmd prompt everything works just
fine.
- The sample above works just fine with VC++ 2003.

Any help to fix this would be appreciated.
Thanks,
Viv
AddThis Social Bookmark Button