VS2013利用firebreath開發跨瀏覽器插件

利用firebreath開發跨瀏覽器插件


http://itindex.net/detail/51062-%E5%88%A9%E7%94%A8-firebreath-%E5%BC%80%E5%8F%91
http://wenku.baidu.com/link?url=IlnBedrM8FmwWrtNlDVhRjyBuHoff8pLorhZy_hxDtHwMGAqpGXrNos-Z1lu8U_BO-xVPbzN0uj-l3dPt6BASaXVaU6lhEsX2W2fShtzpaS


vs2015 firebreath
2016-09-01
總結下來
第一步:
1.下載最新的FireBreath代碼  http://www.firebreath.org/display/documentation/Download  
(我選擇 Download the latest (as of right now) FireBreath archive.zip)
2.下載安裝python 2.7  https://www.python.org/downloads/release/python-278/    
(我選擇 Python 2.7.12  Windows x86-64 MSI installer)
3.下載Cmake            https://cmake.org/download/        
(我選擇 Binary distributions  Windows win64-x64 Installer: Installer tool has changed. Uninstall CMake 3.4 or lower first!)


第二步:
1.解壓FireBreath,並進入目錄運行 fbgen.py 輸入工程名稱和一些信息。
2.輸完之後會在 projects 目錄下,生成你的工程名稱
3.cmd 進入 解壓FireBreath目錄運行prep2013.cmd
4.進入 build 目錄打開 .sln  即可看到工程
5.regsvr32 xxxxx.dll  即可。用瀏覽器打開FBControl.htm 即可看到插件




第三部:
在***API.h和***API.cpp文件中增加方法
//註冊方法暴露到js方法中調用
registerMethod("saveClipImage", make_method(this, &ZCMSPastePluginAPI::saveClipImage));

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章