Hi

Here you are:
https://developer.mozilla.org/en-US/docs/Creating_XPCOM_Components

----- 原始郵件 -----
寄件者: [email protected]
收件者: [email protected]
寄件備份: 2013 12 月 3 星期二 下午 5:49:01
主旨: Re: [b2g] create API

On Tuesday, December 3, 2013 3:09:33 PM UTC+5:30, Jan Jongboom wrote:
> On Tuesday, December 3, 2013 6:25:53 AM UTC+1, [email protected] wrote:
> 
> > On Monday, December 2, 2013 9:28:07 PM UTC+5:30, Jan Jongboom wrote:
> 
> > 
> 
> > > On Monday, December 2, 2013 12:08:20 PM UTC+1, [email protected] wrote:
> 
> > 
> 
> > > 
> 
> > 
> 
> > > > Hi,
> 
> > 
> 
> > > 
> 
> > 
> 
> > > > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > > I am investigating how API in B2G works. now i am trying to call C++ 
> > > > function from javascript. My target is to create a sample API. Help me 
> > > > with some reference Links.
> 
> > 
> 
> > > 
> 
> > 
> 
> > > > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > > Thanks.
> 
> > 
> 
> > > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > Can you elaborate what you want to do here? What kind of C++ functions do 
> > > you want to call from JS?
> 
> > 
> 
> > 
> 
> > 
> 
> > normal c++ function to access gallery files... no system call. i am new to 
> > B2G and new to integrating c++ with JS. I searched and found that we can 
> > able to call c++ functions using XPCOM in firefox (Correct me if i am 
> > wrong), but still finding clear steps on how to use that in B2G for 
> > creating API. Help me with some links for the same.
> 
> 
> 
> Yes, you can call C++ code from XPCOM, but you cannot load XPCom modules in 
> Firefox OS *unless* you make your own builds. If that's OK, check out f.e. 
> dom/inputmethod/ where we implemented the inputmethod API (it has frame 
> scripts, IPC and a public API).

Can you share some content or tutorial for XPCOM modules?  Thanks in Advance
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to