gmail user wrote:
Hi there,
Can someone tell me the reasons why GetServiceByContractID would fail?
I have something like
nsCOMPtr<nsIServiceManager> servMan; nsresult rv = NS_GetServiceManager(getter_AddRefs(servMan)); if (NS_FAILED(rv)) return -1;
nsCOMPtr<nsICookieManager> cookieManager; rv = servMan->GetServiceByContractID("@mozilla.org/cookiemanager;1",
NS_GET_IID(nsICookieManager), getter_AddRefs(cookieManager));
Thanks
-gu
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom
what is the value of |rv| ?
-darin _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
