问题描述
我不清楚Visual Studio 2019模板的适当项目是什么来构建C ++ / WinRT UWP库。我写了一个简单的UWP应用程序,扫描蓝牙低功耗广告。我需要所有这些特殊的C ++ / WinRT基础设施
来访问蓝牙API。现在我想做的就是拿出蓝牙代码并从中创建一个库。
我该怎么做?使用基本C ++时非常简单。
当使用Visual Studio 2019并对C ++和库进行过滤时,我获得的支持UWP的静态或动态库的唯一选项是C ++ / CX 。 C ++ / winRT没有选项。
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.
这篇关于创建C ++ / WinRT UWP库Visual Studio 2019的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!