question

DeadStack avatar image
0 Votes"
DeadStack asked RoyLi-MSFT commented

Consuming a windows runtime component

I have ...

  • created a new solution

  • Added CoreWindow project

  • Added C++/WinRT component project.

  • Referenced the runtime component via: SlnExplorer / Project / References / Add Reference / Check the runtime component project checkbox.

  • Added a using statement for the runtime component namespace.

The project doesn't build with the error 'a namespace with this name does not exist.

What am I missing?


c++
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This line was required...

 #include "winrt//RuntimeComponent.h"
0 Votes 0 ·

I'm confused about the CoreWindow project you mentioned. What is it? A WinUI project or win32 project?

0 Votes 0 ·

0 Answers