js-ctypes

由於本文件沒有此語言的翻譯版本,您閱讀的是英文版的內容。 幫助我們翻譯這篇文章!

js-ctypes allows application and extension code to call back and forth to native code written in C. C++ support is possible through vtable pointers see 使用 COM. For a discussion on extended C++ support see bug 505907. Unlike binary XPCOM components, It allows developers to ship a single binary for use with multiple versions of Firefox.

Note: js-ctypes 只能使用在 chrome 的應用程式和擴展裡,

文件

使用 JS-Ctypes
JS-ctypes 參考
參考 js-ctypes API.

View All...

範例

Add to iPhoto
A Firefox extension that uses js-ctypes to call Carbon and Core Foundation framework routines on Mac OS X to implement an "Add image to iPhoto" feature in Firefox.
使用 C 結構和指針
 
使用 COM
 
使用 Objective-C

使用 JNI/Java

Github :: ochameau / jscpptypes
A mangling library to use C++ from js-ctypes

社群