从JS XPCOM调用dll函数(Calling a dll function from JS XPCOM)

编程入门 行业动态 更新时间:2024-10-14 20:23:35
从JS XPCOM调用dll函数(Calling a dll function from JS XPCOM)

我想知道XPCOM JS是否可以调用外部dll函数?

我有一个暴露某些功能的DLL。 我希望我的XPCOM JS函数能够调用dll函数。 可能吗?

I wanted to know if the XPCOM JS can call an external dll function?

I have a dll that exposes certain functions. I want my XPCOM JS function to be able to call the dll function. Is it possible?

最满意答案

好吧你不能从JS调用外部dll,除非dll是XPCOM组件看看这里https://developer.mozilla.org/en/How_to_build_a_binary_XPCOM_component_using_Visual_Studio然后你可以使用JS通过在XPT中定义它们来调用dll公开的函数

编辑教程: http : //nerdlife.net/building-ac-xpcom-component-in-windows/

well you cannot call external dlls from JS unless the dlls are XPCOM components take a look here https://developer.mozilla.org/en/How_to_build_a_binary_XPCOM_component_using_Visual_Studio then u can use JS to call the functions exposed by the dlls by defining them in the XPT

edit a tutorial : http://nerdlife.net/building-a-c-xpcom-component-in-windows/

更多推荐

本文发布于:2023-08-04 09:51:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1413942.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:函数   XPCOM   JS   dll   function

发布评论

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

>www.elefans.com

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