REQUEST A DEMO

Tag: midl

Correcting a MIDL compiler error – MIDL1001 : cannot open input file

March 22, 2010 This post is for me or for any of the poor souls out there still doing COM development and using the MIDL compiler in anger. Every now and again I need to get our build automation working with the MIDL compiler and it always seems to be related to some sort of path issue. I ran into this again today on my new development machine and in frustration am creating this post so I can remind myself what I did to fix it.   midl : command line error MIDL1001 : cannot open input file oaidl.idl   We have a step in our build automation where we generate a type library using midl.exe. Usually when you are using the Visual Studio Command Prompt (vcvars32.bat) this will work fine but something seems to have gone wrong with this on my Windows 7 development machine on which…