【发布时间】:2013-05-31 07:22:44
【问题描述】:
我已经基于mozilla npruntime项目在MS中成功编译并创建了npapi dll。参考来自:https://developer.mozilla.org/en-US/docs/Compiling_The_npruntime_Sample_Plugin_in_Visual_Studio。 启动 mozilla 并打开 about:plugins 显示插件。但是当我打开“test.html”时,插件没有出现。
我已经通过制作一个单独的测试应用程序测试了 dll,我可以通过它访问入口点函数 NP_INIT l_pInit= (NP_INIT)GetProcAddress(hModule, "NP_Initialize"); 我可以进入我的插件 dll 函数。
但是对于 Mozilla,它不起作用。请提出建议。
【问题讨论】:
-
如果它没有出现在 about:plugins 中(是吗?),您可能缺少资源文件条目或者它们可能不正确(例如 using the wrong locale)。
标签: npapi browser-plugin