MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

翻譯不完整。請協助 翻譯此英文文件

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

社群

 

文件標籤與貢獻者

 此頁面的貢獻者: alk03073135
 最近更新: alk03073135,