Oliveiros Cristina wrote:
This is a XPCOM component.
And I am linking it against these libraries
nspr4.lib plds4.lib embedstring.lib xpcomglue.lib plc4.lib
In general XPCOM components should link with xpcomglue_s.lib insteadof
xpcomglue.lib... please read http://developer.mozilla.org/en/docs/XPCOM_Glue
If you need to use the standalone glue (xpcomglue.lib) for some reason, you
need to make sure you call XPCOMGlueStartup in your module constructor.
The do_GetService() call doesn't call the
nsIServiceManager::GetService() internally?
Yes it does. But it uses templates to maintain the type-safety of the
NS_GET_IID call for you.
--BDS
_______________________________________________
Mozilla-xpcom mailing list
Mozilla-xpcom@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-xpcom