Book Freebie: Creating XPCOM Components

Gerald Bauer <[email protected]>
Newsgroups gmane.comp.lang.xul.announce
Message-ID <[email protected]>
Hi,

  Doug Turner and Ian Oeschger have published a book
titled "Creating XPCOM Components" under the Open
Publication License (OPL).

  The book shows you how to turn your C++ code into a
component that you can plug into Gecko (the Mozilla
"kernel") and discusses everything you never wanted to
know about XPCOM.  

  The tutorial for turning a simple C++ class into a
XPCOM component stretches on for 200+ pages and will
leave future generations puzzled how anyone could have
ever mastered these obscure details. Here's a sample:

if (aIID.Equals(NS_GET_IID(nsISupports))) { 
  *aInstancePtr = (void*)(nsISupports*)this; 
  NS_ADDREF_THIS(); 
  return NS_OK; 
} 

  Hidden in the gory XPCOM details is a mini-XUL
tutorial in chapter 8 titled: "Building the WebLock
UI".

  Full story @
http://www.mozilla.org/projects/xpcom/book/cxc and
http://www.mozilla.org/projects/xpcom/book/cxc/html/weblock_ui.html

   - Gerald


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.