On Fri Jul 4 13:29:55 2025 +0000, Hans Leidekker wrote:
midl? Isn't runtimeclass a winrt-only type? midlrt definitely accepts this:
namespace Winetest { [ contract(Windows.Foundation.UniversalApiContract, 1.0), uuid(11111111-2222-3333-4444-555555555555), ] interface IWineInterface : IInspectable { HRESULT WineMethod( int param ); }; [ contract(Windows.Foundation.UniversalApiContract, 1.0), ] runtimeclass WineRuntimeClass { interface IWineInterface; }; }
The error might be relaxed to having at least one interface rather than a default one, but if you remove the interface you get an error.
midl? Isn't runtimeclass a winrt-only type?
Sure, midl, midlrt, it's more or less the same thing as one might call the other or the other way around anyway.