是否可以在Apache Cordova项目中使用非托管DLL(C ++)?
Is it possible to use an unmanaged DLL (C++) in an Apache Cordova project? How?
我试图按照此页面,但我不明白该在哪里引用DLL及其方法。
I tried to follow the instructions on this page but I didn't understand where do I reference the DLL and its methods.
更新
似乎有可能创建一个Windows运行时组件,该组件引用指向winmd文件的非托管DLL和Cordova插件,但是似乎方法调用不起作用。我没有收到任何错误消息,甚至无法调试,因为Visual Studio仍然不具备Apache Cordova项目的调试功能。
It seems to be possible creating a Windows Runtime Component that references the unmanaged DLL and Cordova plugin pointing to the winmd file, however it seems that the method call is not working. I don't receive any error message and can't even debug as Visual Studio still does not have debugging capability for Apache Cordova projects.
推荐答案当在Cordova插件中使用基于C ++的Windows运行时组件时,Cordova命令行界面的下一版本将改善对多种芯片体系结构的支持。
The next version of the Cordova Command Line Interface will improve support for multiple chip architectures when using a C++ based Windows Runtime component in a Cordova plugin.
您可以在此处查看详细信息: github/apache/cordova-lib/pull/164
You can see details here: github/apache/cordova-lib/pull/164
我们也在努力确保Visual Studio调试器能够在将Windows Phone(通用)平台目标用于Phone 8.1时,请附加到Windows Phone(这是我假设您在上面所指的)。 Windows 8.0 / 8.1调试已受支持。同时,您可以在构建Windows之后作为策略解决方案在bld / Debug / platforms / windows中打开解决方案。请继续关注未来几周的最新动态。
We are also working to ensure that the Visual Studio debugger is able to attach to Windows Phone (which is what I assume you are referring to above) when using the Windows Phone (Universal) platform target for Phone 8.1. Windows 8.0/8.1 debugging is already supported. In the mean time, you can open up the solution in the bld/Debug/platforms/windows after building for Windows as a tactical workaround. Stay tuned for an update in the coming weeks.
更多推荐
在Apache Cordova项目中使用非托管DLL
发布评论