Re: Bug in VC++2005 running an "embeded" devenv cmd?



Hi Helge,

Thanks for your answer, but your suggestion didn't work :( I would
assume this is a VC++ 2005 bug but I was wondering if there is also a
workaround for it?

Thx,
Viv


From: Helge Kruse - view profile
Date: Tues, Feb 21 2006 10:41 pm
Email: "Helge Kruse" <Helge.Kruse-nos...@xxxxxxx>
Groups: microsoft.public.vc.ide_general, microsoft.public.vsnet.general, microsoft.public.vsnet.act, microsoft.public.vsnet.ide, microsoft.public.vstudio.development, microsoft.public.vstudio.general, comp.windows.misc
Not yet ratedRating:
show options


Reply | Reply to Author | Forward | Print | Individual Message | Show original | Report Abuse | Find messages by this author


Sounds strange. Do you wan to try a workaround bat file like following? I
did not check it. But it should be closer to your manual invokation.

set local
cd /d <preferable-full-path-or-a-correct-relative-path>
devenv resdl.sln
endlocal


/Helge






On Tue, 21 Feb 2006 18:21:56 +0100, Viviana Vc <vcotirlea@xxxxxxxxxxx> wrote :

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

.



Relevant Pages

  • [ANN] Currently available hotfixes for VC 2005
    ... FIX: An access violation may occur when you try to run a Visual C++ 2005 application that contains OMG CORBA IDL code ... You may receive an invalid type exception when floating-point optimization of a Visual C++ application occurs in Visual Studio 2005 ... FIX: Error message when you use certain code patterns that involve the IDisposable interface in the Visual Studio 2005 C++ compiler: Fatal error C1001 ... The IDE stops responding when you build a project that generates lots of text in the Output window in Visual Studio 2005 ...
    (microsoft.public.vc.language)
  • Re: I dont really understand windows security...I need help
    ... That is my exact problem, however the fix ... I now have updated to the new visual studio, so I've created a new aspnet ... >> the file system, I clicked fix, and ever since IE won't launch off the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: [ANN] Currently available hotfixes for VC 2005
    ... Does anyone know when the full pack will be out? ... FIX: An access violation may occur when you try to run a Visual C++ 2005 ... optimization of a Visual C++ application occurs in Visual Studio 2005 ... Error message when you use certain code patterns that involve the ...
    (microsoft.public.vc.language)
  • Edit undo stops working and missing hot keys
    ... I'm migrating from VC6 to Visual Studio 2003.net. ... To fix it I had to restart Visual Studio. ... A macro maybe? ...
    (microsoft.public.vsnet.ide)
  • Re: I dont really understand windows security...I need help
    ... I would chalk this one up to having a beta version of Visual Studio and let ... however the fix ... It definitely seems like a problem with permissions. ... >>> desktop, but will launch off the quick launch, but only in something ...
    (microsoft.public.dotnet.framework.aspnet.security)