Richard wrote:
I know there's similar posts out there, but I still can't seem to get
embedding to work on windows:
nsresult rv;
nsCOMPtr<nsILocalFile> binDir;
NS_NewLocalFile(NS_LITERAL_STRING("C:\\Mozilla\\mozilla\\mozilla\\dist\\bin"),
TRUE, getter_AddRefs(binDir));
rv = NS_InitEmbedding(binDir, nsnull);
rv is always equal to NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154). Does
anyone have any ideas? The Firefox.exe in that directory seems to run fine
but my embedding app doesn't
Are you using a standard firefox build? You can't embed a standard Firefox
build because it links the component libraries statically to the executable,
where the embedding can't get at them.
XULRunner is the official embedding solution, and should work in these
circumstances if you've linked your code correctly (using frozen linkage and
not internal linkage).
--BDS
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding