在Apache Cordova项目中使用非托管DLL

编程入门 行业动态 更新时间:2024-10-19 18:25:03
本文介绍了在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.

您可以在此处查看详细信息: 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

本文发布于:2023-11-16 11:44:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1603980.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   Apache   Cordova   DLL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!