Hi all, this is part of my code. initembedding works fine. until the
line where it calls for do_CreateInstance.
i believe do_CreateInstance is working fine, only when it starts to
assign it to webBrowserm, there's where after it finishes that rv
returns error_not_initialised n calls up "God".
why is that so? currently i have no linking errors, compiles
perfectly...

    rv = NS_InitEmbedding(nsnull, nsnull);
    if(NS_FAILED(rv)){
  MessageBox(NULL, "Failed to start mozilla", "", MB_OK);
  return 1;}

 nsCOMPtr < nsIWebBrowser > webBrowser = do_CreateInstance(
NS_WEBBROWSER_CONTRACTID, &rv);
 if (NS_FAILED(rv))
 { AfxMessageBox("God"); 
   return rv;}

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

Reply via email to