|
Hi Damien, I did the steps you said in your mail and see compreg.dat recreated under profiles directory. But, the observer notification for xpcom-startup didn't came while firefox starts. The following code registers for the xpcom-startup notification to category manager static NS_METHOD nsQEngineRegistrationProc(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info) { nsresult rv; nsCOMPtr<nsIServiceManager> server = do_QueryInterface((nsISupports*)aCompMgr,&rv); nsCOMPtr<nsICategoryManager> catman; server->GetServiceByContractID(NS_CATEGORYMANAGER_CONTRACTID,NS_GET_IID(nsICategoryManager),getter_AddRefs(catman)); if(NS_SUCCEEDED(rv)) { char* previous = nsnull; catman->AddCategoryEntry("xpcom-startup","nsQEngineImpl",NS_QENGINE_CONTRACTID,PR_TRUE,PR_TRUE,&previous); } return NS_OK; } Please let me know this is the way by which we should register for xpcom-startup notification. One more pointer the same code works with Firefox under Linux Platform. I will appreciate your help in this regard. Thanks & Regards Raghavan Damien O'Brien wrote: -- "Buy what you want. Sell what you don't want. Use
this portal, www.finepick.com,
for FREE. Simple!"
|
- xpcom-startup notification Srinivasa Raghavan
- RE: xpcom-startup notification Damien O'Brien
- Re: xpcom-startup notification Srinivasa Raghavan
- RE: xpcom-startup notification Damien O'Brien
- RE: xpcom-startup notification Srinivasa Raghavan
- RE: xpcom-startup notification Damien O'Brien
- Re: xpcom-startup notificatio... Srinivasa Raghavan
- RE: xpcom-startup notific... Damien O'Brien
