May be this will help Assumption: /usr/X11R6/lib/firefox is having components, chrome, defaults, extensions, greprefs, icons, plugins
nsCOMPtr<nsILocalFile> nsFile; NS_NewLocalFile(NS_LITERAL_STRING("/usr/X11R6/lib/firefox"), TRUE, getter_AddRefs(nsFile)); nsresult rv = NS_InitEmbedding(nsFile, nsnull); if (rv != NS_OK) { cerr << "Embedding failed.." << rv << endl; exit(1); } Niky Williams wrote:
Please bear with me here, I am a total nubie to the Gecko SDK. I currently have an app that uses the IE COM control...works okay..but I REALLY want to get off of IE and use the Gecko engine. I have a fairly okay understanding of MS COM and have been reading what I can get my hands on for XPCOM. My App is not going to be a web browser, I just need the Gecko engine to render the HTML for me and for me to be able to grab events from buttons clicked on the HTML. I've been looking for about a week now on getting this setup and working...I think once I get the basic stuff working here I'll be okay. I DLed the Gecko SDK, set up a very basic C++ app that did nothing but call NS_InitEmbedding(nsnull, nsnull). I see the first param is the Mozilla Bin Directory, but docs said both can be nsnull. I think read somewhere that I'll need to compile the Mozilla source for certain embedding libraries...is this true or does the Gecko SDK hold everything I need? Anyways, I get back the error "NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154)". So, I'm missing some XPCOM lib that isn't reg'ed? If I just call NS_InitXPCOM2(nsnull, nsnull, nsnull) it goes okay, but as soon as I try and create a Web Browser instance (CreateInstanceByContractID() via nsIComponentManager) I get the same error. I'm just needing some good guidance and confirmation of some things here as to how to get started. Excuse my ignorance and much thanks in advance! Nik _______________________________________________ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://mail.mozilla.org/listinfo/mozilla-embedding
begin:vcard fn:Yogish Baliga n:Baliga;Yogish org:Yahoo! Inc email;internet:[EMAIL PROTECTED] title:Senior Technical Yahoo! tel;work:(408)-349-7450 tel;fax:(408)-349-5454 tel;pager:[EMAIL PROTECTED] x-mozilla-html:FALSE url:http://billpay.yahoo.com version:2.1 end:vcard