Sorry for the bother, i'm less confused now after a good night's sleep. 
Managed to use javascript to create an instance of my sample component 
(implemented in the .so).
[EMAIL PROTECTED] wrote:
>
> Hi,
> 
> Now that I've got it all working, I'm getting confused.
> 
> (Stop reading if you get irritated by stupid questions.....)
> 
> What is all happening? In the HelloWorld Javascript component example there 
> are 3 files, the interface, the javascript implementation of the component 
> and a xpt file. So you copy the .js and the .xpt file (why do we need a xpt 
> file?) to the dist/bin/componenents directory. From that point on, I'd like 
> to know what is happening exactly. And what if there's no .js file and .xpt 
> file, can I use javascript to create an instance when there's a .so file 
> (since we're only talking to the interface???). Also what is this 
registring 
> exactly. (I warned you, silly questions from a beginner...).
> Anyway can someone make it a bit clearer.
> 
> Cheers,
> 
> Roger 
> 
> 
> 
> [EMAIL PROTECTED] wrote:
> >
> > Thanks very much Pete, 
> > 
> > Managed to get your example working. 
> > 
> > For dummies like me --> also found this sample directory 
> > (~/mozilla/xpcom/sample) and just modified the files in there so I 
managed 
> to 
> > build my xpcom component. Anxiously hacking on....
> > 
> > Cheers,
> > 
> > Roger
> > 
> > pete collins <[EMAIL PROTECTED]> wrote:
> > >
> > > Here is a doc for doing a Hello World js component. (Stolen from
> > > nsISample)
> > > 
> > > http://www.mozdev.org/notes/hello_world_js_component.html
> > > 
> > > --pete
> > > 
> > > 
> > > [EMAIL PROTECTED] wrote:
> > > > 
> > > > Hi,
> > > > 
> > > > (Warning: question from an absolute xpcom beginner.....)
> > > > 
> > > > I want to learn how to write xpcom components, so I found the 
HelloWorld
> > > > example in the article "Extending Mozilla Or.....". So on my linux box
> > > > installed M18 and created a the directory ~/mozilla/helloworld in 
which 
> I
> > > > created the idl file, the generated header file and the cpp files as 
in 
> > the
> > > > article. Now how do I go on from here??? I assume I need a makefile 
> which
> > > > creates a shared library and compiles the main.cpp file. Is that 
all???
> > > > Can anyone take me a step further....
> > > > 
> > > > Cheers,
> > > > 
> > > > Roger
> > > > __________________________________________________________________
> > > > Get your own FREE, personal Netscape Webmail account today at
> > > > http://webmail.netscape.com/
> > > 
> > > 
> > __________________________________________________________________
> > Get your own FREE, personal Netscape Webmail account today at 
> > http://webmail.netscape.com/
> > 
> > 
> __________________________________________________________________
> Get your own FREE, personal Netscape Webmail account today at 
> http://webmail.netscape.com/
> 
> 
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.com/

Reply via email to