Can't activate projected type defined in IDL
问题 I was trying to define a Windows Runtime type in IDL, and consume its projected type. Going from a default-generated Blank App UWP project (called "Blank App" ), I added "MyControl.idl" : namespace BlankApp { [default_interface] runtimeclass MyControl : Windows.UI.Xaml.Controls.Control { MyControl(); } } Compiled the solution, then copied MyControl.h and MyControl.cpp from Generated Files/sources to the project root directory. I included the header for the projected type and added the