Bug Report: Unclear Error Message



When you by mistake have two properties with same id in dual interface in
idl file the compilation fails and the error message does not point to the
problem that have caused the failure.

The error message says
error MIDL2020 : error generating type library : LayOut failed : ISiteView
(0x800288C6) midl\oleaut32.dll

Happens with Visual Studio 2005 sp1.

To reproduce create an ATL project (not attributed).
1. Add simple COM object and two properties to it's interface.
2. Create an h file (say dispids.h), define preprocessor constants for
DISPIDs in it, include it into IDL and replace constants with their defined
names.
3. Make sure that everything compiles.
4. Go to dispids.h and change the constants to have the same valure.
5. Compile and see the error message.


.



Relevant Pages

  • Re: intel compiler problem
    ... The error message seems ... Declarations are absolutely critical to diagnosing compilation ... Just seeing the isolated code line doesn't help ...
    (comp.lang.fortran)
  • Re: i need your help...-_-! (wmdm/atl beginners question!)
    ... second IDL file that fail your compilation? ... Alexander Nickolov ... >> Microsoft MVP, MCSD ...
    (microsoft.public.vc.atl)
  • Re: No syntax control during webservice validation in Visual Studio 8
    ... An error occurred during the compilation of a resource ... Compiler Error Message: CS1002:; expected ... I created another web service solution and everything works fine there ... Validating Web Site ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Error Occured during compilation
    ... > I get two different errors when i compile it with 'gcc' as well as ... > gcc compilation ... If you don't show us the actual error message, ... I compiled your code under Cygwin, ...
    (comp.lang.c)
  • Re: Backup Error
    ... denied" error message when you log on to Windows SharePoint Services ... An error occurred during the compilation of a resource ... Compiler Error Message: CS0016: Could not write to output file ...
    (microsoft.public.windows.server.sbs)

Loading