Create a C++/WinRT UWP library Visual Studio 2019

  • Thread starter Thread starter Sisansarah
  • Start date Start date
S

Sisansarah

Guest
It is unclear to me what the appropriate project Visual Studio 2019 template is to make a C++/WinRT UWP library. I wrote a simple UWP app that scanned for Bluetooth Low Energy advertisements. I needed all this special C++/WinRT infrastructure to access the Bluetooth APIs. Now what I would like to do is take that Bluetooth code and make a library out of it.

How do I do that? It was so straightforward when using basic C++.

When using Visual Studio 2019 and filtering on C++ and library, the only options I get for a static or dynamic library that supports UWP is C++/CX. There are no options for C++/winRT.

Continue reading...
 
Back
Top