【发布时间】:2011-12-27 21:26:37
【问题描述】:
(我不是在构建扩展程序而是在构建我的示例应用程序)
在 xulrunner 1.9.2 我可以使用:
Components.utils.import("resource://gre/modules/ctypes.jsm");
在 Windows 上轻松地进行本机调用 (.dll)。我正在使用 gre(Gecko 运行时环境 1.9.2)执行我的 application.ini,其中包含 modules 文件夹和 ctypes.jsm。
在最新的 xulrunners 7.0、8.0 和 9.0 GRE 中没有 modules 文件夹。我尝试使用 Xulrunner SDK。在 bin/modules 中,ctypes.jsm 存在。
但我不知道在Components.utils.import("**********"); 中提供什么。
有人可以澄清我的问题吗?
【问题讨论】: