Hi All,

I am beginner in Gecko embedding.
I have downloaded Gecko SDK 1.7 and use it to include .h and .lib
files. In my VC application, I am initializing xpcom using
NS_InitXPCOM2(nsnull, nsnull, nsnull) and its returning 0. So no
problme here.

But when i try to create instance of nsIWebBrowser, it gets failed!!


nsCOMPtr<nsIComponentManager> componentManager;
NS_GetComponentManager(getter_AddRefs(componentManager));

nsCOMPtr<nsIWebBrowser> webBrowser;

webBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID, &rv);

if(NS_FAILED(rv))
   return FALSE;

--------------------------

and the return value that i get in "nsresult" is
NS_ERROR_FACTORY_NOT_REGISTERED. So how to get the webbrowser component
registered?

-Bil

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

Reply via email to