Calling Windows managed .dll from Cordova App. WinRT Component?

被刻印的时光 ゝ 提交于 2019-12-12 01:37:26

问题


I need to expose a managed .dll to a Cordova App. My thought process here is to create a plugin which itself will communicate with the managed .dll.

This is STRICTLY for Windows10. I don't need to support anything other than Windows10.

Is there a better way to make calls to a managed .dll from a Cordova App than what I outline below? Is a Windows Runtime Component the best way to go about doing this?

As far as I understand, the best route to do this is to create a Windows Runtime Component.

i.e. JavaScript -> calls www\myplugin.js (interface) -> calls windows\myproxyplugin.js -> calls the WinRT component -> calls the managed .dll?

Am I on the right path to doing this? If not can you please offer the best recommended approach for being able to make calls into a managed .dll from a Cordova App

来源:https://stackoverflow.com/questions/39626809/calling-windows-managed-dll-from-cordova-app-winrt-component

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!