摘要: 最近项目中需要我编写跨平台的浏览器控件供JavaScript调用,经过几天折腾,我的插件已经能够很好的工作在Windows、Linux、Mac平台上的主流浏览器上,和JavaScript也可以很好的进行交互通知,下面就介绍一下主要的NPAPI插件开发流程和一些需要特别注意的地方。下载NPAPI-SDK,里面有4个文件npapi.h、npfunctions.h、npruntime.h、nptypes.h,我们不需要改动它们。在http://mxr.mozilla.org/seamonkey/source/modules/plugin/samples/npruntime/下载np_entry... 阅读全文
posted @ 2013-08-10 19:02 NesTa.xP 阅读(4752) 评论(5) 推荐(0)
摘要: GCC (on Linux) and some other compilers, e.g Sun Studio. Set CFLAGS and CXXFLAGS to include -m32 (32-bit build) or -m64 (64-bit build).Windows, Visual Studio generator .Use 64 bit generator ,e.gcmake -G "Visual Studio 10 Win64" path\to\source\dirto compile 64-bit (x64). Omit "Win64&qu 阅读全文
posted @ 2013-08-06 11:36 NesTa.xP 阅读(12415) 评论(0) 推荐(0)