Did the nsIWebBrowser component get successfully registered ?
How does one find if the component is successfully registerd -
1. Check the xpti.dat
2. Check the compreg.dat
These files should have the entry for the particular component. You might want to get hold of component viewer for xpcom http://www.hacksrus.com/~ginda/cview/ and see if the component is indeed registered.
Also, which directory did you place the nsIWebBrowser DLL in ? That might help you dig in more.
--Gangadhar


bilal wrote:
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