我现在正在编写Universal App WinRT组件,我想在控制台中测试API
。它用C++
编写。
有什么办法吗?
或者,如何在无需实际启动应用程序的情况下测试组件?
PS:我是Apps的新手。
最佳答案
从Win32控制台应用程序访问WinRT基本上有3种方法...
通过使用C ++ / CX扩展:
http://www.mrcplusplus.com/how-access-winrt-from-win32-console-application-using-ccx-extensions.html/
通过使用WRL:
http://www.mrcplusplus.com/how-access-winrt-from-win32-console-application-using-wrl.html/
没有Visual Studio的任何帮助:
http://www.mrcplusplus.com/how-access-winrt-from-win32-console-application-without-help.html/
关于c++ - 您如何在控制台中测试C + WinRT组件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28088008/