在Apache Cordova项目中使用非托管DLL [英] Use an unmanaged DLL in Apache Cordova project

查看:88
本文介绍了在Apache Cordova项目中使用非托管DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在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.

您可以在此处查看详细信息: https://github.com/apache/cordova-lib/pull/164

You can see details here: https://github.com/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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆