Hi!

I want to use XPCOM in my plugin module.
But I met NS_ERROR_NOT_INITIALIZED error when I tried to get the
servicemanager with the following code.

nsCOMPtr<nsIServiceManager> servMan;
nsresult rv = NS_GetServiceManager(getter_AddRefs(servMan));
if (NS_FAILED(rv))
  return -1;

Should I do any other special things to use XPCOM(especially,
ServiceManager) in my plugin ?


_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to