Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Spawning temporary file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Crest Teethgel - 04 Jul 2007 22:07 GMT
Hi Everyone!

I am trying to build an Type Library with VS 2005 Express.
When I build the project I get "Error spawning midl.exe".
Does anyone have a clue on this?
The actual output is shown belown.
Thanks for your help.

Command Lines
         Creating temporary file "...\IProject2\Debug\RSP00000140283800.rsp" with contents
[
/D "_DEBUG" /mktyplib203 /char signed /env win32  /tlb ".\Debug/IProject2.tlb"

".\IProject2.idl"
]
Creating command line "midl.exe @"...\IProject2\Debug\RSP00000140283800.rsp" /nologo"
Output Window
         Creating Type Library...
Project : error PRJ0003 : Error spawning 'midl.exe'.

When I do it manually. Everything goes fine.

C:>midl /D "_DEBUG" /mktyplib203 /char signed /env win32  /tlb ".\Debug/IProject
2.tlb"  ".\IProject2.idl"
Microsoft (R) 32b/64b MIDL Compiler Version 6.00.0366
Copyright (c) Microsoft Corporation 1991-2002. All rights reserved.
Processing .\IProject2.idl
IProject2.idl
Processing C:\Program Files\Microsoft Platform SDK R2\Include\oaidl.idl
oaidl.idl
Processing C:\Program Files\Microsoft Platform SDK R2\Include\objidl.idl
objidl.idl
Processing C:\Program Files\Microsoft Platform SDK R2\Include\unknwn.idl
unknwn.idl
Processing C:\Program Files\Microsoft Platform SDK R2\Include\wtypes.idl
wtypes.idl
Processing C:\Program Files\Microsoft Platform SDK R2\Include\basetsd.h
basetsd.h
Processing C:\Program Files\Microsoft Platform SDK R2\Include\guiddef.h
guiddef.h
Processing C:\Program Files\Microsoft Platform SDK R2\Include\oaidl.acf
oaidl.acf
Crest Teethgel - 05 Jul 2007 19:18 GMT
I wrote

> Command Lines
>           Creating temporary file "...\IProject2\Debug\RSP00000140283800.rsp" with contents
[quoted text clipped - 7 lines]
>           Creating Type Library...
> Project : error PRJ0003 : Error spawning 'midl.exe'.

The only thing I see.
Relative path is used inside the generated response file (bad thing).
Like ".\Debug/IProject2.tlb" and ".\IProject2.idl"

This can only work if the starting folder of the spawned command   "midl.exe @"...
corresponds to the actual project folder.

Where can I report this bug ?

Crest
Crest Teethgel - 06 Jul 2007 04:20 GMT
I found it.

I thought that the environment variable path
for cmd.exe and ide were the same.
After verification they were not.

Just added the missing folder to ide.
Now it's ok.
Cornelius Mende - 27 Sep 2007 18:36 GMT
Hello,

i've similar pbs.
Could you please precise a little more which folder (with which contents) did you add and where exactly?

What should contain the the environment variable path?

Thank's in advance,

Best regards,
Conni

EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.