Hi all,
Ii'm trying to use xpcom components in my c++ application. I've already
init_embed with no probs, but when comes to the serviceManager, it kps
failing. why is it so?
this is part of my code:
rv = NS_InitEmbedding(nsnull, nsnull);
if(NS_FAILED(rv))
{ //AfxMessageBox("Heaven");
return 1;}
// activate servicemanager
nsCOMPtr<nsIServiceManager> servMan;
rv = NS_GetServiceManager(getter_AddRefs(servMan));
if(NS_FAILED(rv)){
AfxMessageBox("Earth");
return 1;}
can anyone enlighten me?
thank you so much.
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding