"Rob Shearman" robertshearman@gmail.com writes:
2008/10/18 Reece Dunn msclrhd@googlemail.com:
The midl generated code allows you to define COM_NO_WINDOWS_H to prevent the inclusion of windows.h. That define is thus added to those provided by msvcmaker.
Any reason why this hasn't been applied yet?
I've been testing with this applied and I believe it is an improvement and gets more DLLs compiling.
I don't think it's the right approach. If midl-generated code uses windows.h then widl-generated code should too, and we should ensure that it works in both cases, for instance by disabling the check when it's included from generated files or something along those lines.