Kevin Ollivier wrote:
Hi Kyle,
On Monday, August 18, 2003, at 08:34 PM, Kyle Yuan wrote:
Hi, Kevin
Thanks for the extremely detailed description.
Seems GRE_Startup() is the right function to be called at the startup, and it does work with my own build of mozilla 1.4. But once I copied my app into the installed mozilla 1.4 (downloaded from http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.4/mozilla-win32- 1.4-installer.exe) directory (C:\Program Files\mozilla.org\Mozilla), neither
nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService(NS_WINDOWWATCHER_CONTRACTID)) nor
nsCOMPtr<nsIProfile> profileService(do_GetService(NS_PROFILE_CONTRACTID)) return the correct value for me.
What's wrong with my code?
Did you copy your application into "C:\Program Files\mozilla.org\" or "C:\Program Files\Common Files\mozilla.org\GRE\1.4f<builddate>"? If you haven't tried copying it into the latter, please try it. It may even work. =)
I just tried to copy my app to the GRE directory, do_GetService works, but the embeded browser window has not shown up :( I have'nt had time to investigate the reason, but anyway, I do not think copying the embedding app itself into the GRE directory is a good idea.
While "C:\Program Files\mozilla.org" has a components directory, the core components aren't there - they're in the GRE's components folder. The files in the Mozilla application folder are extra components specific to "Mozilla the Application Suite" - like import/export filters needed by mail and news. Things are done this way so that the system-wide GRE stores only a set of "core components" used by all GRE applications. Each application using the GRE then creates it's own "components" folder that contains any XPCOM components specific to that application.
HTH,
Kevin
Thanks Kyle
