oleidl.idl must include windows.h and ole2.h if COM_NO_WINDOWS_H is not defined.

Francois Gouget fgouget at free.fr
Thu Oct 19 09:52:11 CDT 2006


On Thu, 19 Oct 2006, Robert Shearman wrote:
[...]
> > Actually, in the PSDK there seems to be a correlation between
> > COM_NO_WINDOWS_H and idl files. It's not 100% but that may be just be
> > because they don't ship all the idl files. Also, the COM_NO_WINDOWS_H #ifdef
> > is not present in the idl file, suggesting that it is being added by midl.
> 
> Yes, this is correct.

Hmm, there must still be something more: for instance amvideo.h and 
wtypes.h are midl generated and yet they don't have this 
COM_NO_WINDOWS_H stuff.

Still, the 2003SP2 SDK has 231 header files generated from an Idl file, 
and only 44 of those are missing the COM_NO_WINDOWS_H section so it's a 
good first approximation. Could it depend on the imported idl files?

-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
                      Computers are like airconditioners
                They stop working properly if you open WINDOWS



More information about the wine-devel mailing list