Here is a trivial .idl file:
import "oaidl.idl";
import "ocidl.idl";
namespace MyNameSpace
{
[default_interface]
runtimeclass Dummy : Microsoft.UI.Xaml.Window
{
Dummy();
};
}
When I try to compile just this file with VS2022 17.10.4, I get 2 MIDL2003 errors:
[msg]redefinition [context]: _FLAGGED_WORD_BLOB wtypesbase.idl line 468
[msg]redefinition [context]: IUnknown unknwnbase.idl line 42
Commenting out both of the imports eliminates the error, although commenting out either one does not. They are not necessary for this repro, but I need them in my real app. Suggestions?