Bug Report: Unclear Error Message
- From: "Max" <please@newsgroup>
- Date: Sun, 29 Apr 2007 13:47:10 +0300
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.
.
- Prev by Date: Re: Exe file not portable?
- Next by Date: Re: Exe file not portable?
- Previous by thread: blue screen when install VS 2005 SP1 on Windows Server 2003 SP1.
- Next by thread: Windows Service Installer fails: Unable to load one or more of the requested types
- Index(es):
Relevant Pages
|
Loading