This is an archived page. It's not actively maintained.

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

社群