Just update your Visual Studio to download the WRL Project template here. It allows to target WinRT component.
Be careful, you have to update your project with Linker -> Windows Metadata -> Generate Windows Metadata to TRUE.
This project template allows to build WinRT components using the real C++. Not the C++/CX compiler extensions.
Leave a Reply