I am new to XPCOM too. I've created a simple Weblock component followed http://www.mozilla.org/projects/xpcom/book/cxc/html/weblock.html, but it can't be registered(on Netscape 7.0). I debuged it and found rv = servman->GetServiceByContractID(NS_CATEGORYMANAGER_CONTRACTID, NS_GET_IID(nsICategoryManager), getter_AddRefs(catman));
return a error (rv = 0x80004002, means NS_ERROR_NO_INTERFACE). Why your Weblock component can works perfectly on Netscape 7.0? I do something wrong? Thanks in Advance Cadenza "ANIL" <[EMAIL PROTECTED]> д����Ϣ����:[EMAIL PROTECTED] > Hi > > I am new to XPCOM. > > I've created a Weblock component that is available as a sample on the NET. > The component works perfectly on Netscape 7.0 but it doesn't work with > FireFox 1.0. > > All that I am doing is simply trying to catch the urls in the ShouldLoad > function of nsIContentPolicy interface. > > Please let me know if anyone has encountered this issue or have any ideas > how to implement this in a diffrent way. > > Thanks in Advance > > Anil. > > _______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
