我想知道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/
更多推荐
发布评论