Thanks for your response, Mat! There is very few c++ samples. Even there is no sample to write a simple client: from init lib to create component .... Yeah, I might have to look at source code to find those things. Or might translate the javascript sample to c++.
Thanks again and happy a new year to you too! -John "Matej Pfajfar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John, > > I don't know the answer to your first question - I've never done that > with XPCOM. > As for the other two: > > 2. Yes, providing you stick to using frozen interfaces and link your > component with the gecko sdk, you shouldn't > have to rebuild your component for newer versions of mozilla/firefox. A > lot of components also use non-frozen > interfaces simply because they need them to provide the funcionality > they want - this is ok, but keep track > of those interfaces so you can fix your component if they change. > > 3. If you're familiar with ATL COM, you'll find that many of the same > principals apply to XPCOM as well. The XPCOM macros > are simple and easy to use (especially if you already know about > interfaces, instances, reference counting etc.!). I would suggest > looking at the XPCOM tutorial (just google for it), it has a nice code > sample and is quite coherent to read. Another > good thing to do is to look at the source code of other XPCOM components > and you will quickly learn all the tricks you need. > > Enjoy the festivities and have a happy new year :-) ! > > Mat > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of John > Sent: Tuesday, December 21, 2004 9:19 PM > To: [EMAIL PROTECTED] > Subject: help: c++ sample code web page for using xpcom > > Hi, > > I am new to XPCOM. I have a couple of questions. > > 1. I search the internet try to find sample c++ code for using xpcom to > query the proxy settings in Firefox, but get nothing. If you know some > good websites for c++ smaple codes, please help. Really appreciated! > > 2. If Firefox 1.0 and mozilla shared same xpcom interface so once my > code works in Firefox and it should work on latest mozilla? > > 3. what's the effort to use XPCOM in small scale (just use Firefox > supported > interface) if I am pretty familiar with ATL COM? > > Thanks very much for your reply and happy holidays! > > John > > > _______________________________________________ > Mozilla-xpcom mailing list > [EMAIL PROTECTED] > http://mail.mozilla.org/listinfo/mozilla-xpcom > > > _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
