MIDL2003 Error in VC6 project

Posted by graham.reeds on Stack Overflow See other posts from Stack Overflow or by graham.reeds
Published on 2010-05-12T09:49:48Z Indexed on 2010/05/12 9:54 UTC
Read the original article Hit count: 560

Filed under:
|

While bug fixing I tracked a problem to an old vc6 compiled dll that hasn't been touched in nearly 3 years.

After checking out the most recent source I am getting the following error when trying to compile.

Processing C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\msxml.idl
msxml.idl
.\ocidl.idl(1524) : error MIDL2003 : redefinition : IErrorLog
.\ocidl.idl(1541) : error MIDL2003 : redefinition : IPropertyBag

Google gives lots of suggestions regarding Visual Studio 2002 -> 2003 errors but I can't find anything that relates to Visual Studio 6 or can be applied to my problem.

I did find this page but following it's advice didn't fix my problem.

Does anyone have any suggestions on how to fix this? (I am presuming that it did work once.)

Other items of interest: I have the February 2003 Platform SDK installed, and looking at the add/remove program page I have Micrsoft XML Parser and SDK, MSXML 4.0 SP2 and MSXML 6.0 Parser too.

© Stack Overflow or respective owner

Related posts about vc6

Related posts about midl