|
Hi, Your registration function looks like it's almost identical to mine one (I've pasted my one in below so that you can compare yourself). Did your compreg.dat file contain entries for your dll after you touched .autoreg and restarted firefox? I'm not really sure why your dll isn't being called - are you sure your dll isn't being loaded by Firefox? Maybe Firefox is loading it but because your missing something or something is different with firefox on windows your dll is being loaded but doesn't work? One thing I did to check if my dll was even being loaded by firefox was to use a program called filemon (http://www.sysinternals.com/ntw2k/source/filemon.shtml) to check if my dll was being touched when starting and running firefox. The reason I did this is because I had a problem before where my dll was being loaded but because I'd failed to implement a piece of functionality it wasn't working properly - at least by doing this you'll be able to tell if your dll is even being picked up by firefox. sorry I can't be any more help, Damien
static NS_METHODObMozRegistration( nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info) { nsresult rv; nsCOMPtr<nsIServiceManager> servman = do_QueryInterface((nsISupports*)aCompMgr, &rv); if (NS_FAILED(rv)) return rv; nsCOMPtr<nsICategoryManager> catman; servman->GetServiceByContractID(NS_CATEGORYMANAGER_CONTRACTID, NS_GET_IID(nsICategoryManager), getter_AddRefs(catman)); if (NS_FAILED(rv)) return rv; char* previous = nsnull; rv = catman->AddCategoryEntry("xpcom-startup", "ObMoz", ObMoz_ContractID, PR_TRUE, PR_TRUE, &previous); if (previous) nsMemory::Free(previous); return rv; }
|
Title: Message
- 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
