Olaf wrote:
That one was easy. As a reference for people with the same problem:
define XP_WIN in your project.
Now I'm getting a different error from NS_InitEmbedding. I get Error
4005 (NS_ERROR_FAILURE)
Olaf,
You have to tell NS_InitEmbedding where the mozilla bin directory
is...unless your .exe resides within the mozilla bin directory itself
(this is when you can use nsnull for that parameter). This is probably
why it is failing.
This is kinda how mine is setup...
//------------------------------------------
//Temp vars
nsresult rv = NS_OK;
nsCOMPtr<nsILocalFile> pCOM_lf;
...
//Initializing Gecko
NS_NewLocalFile (NS_ConvertUTF8toUTF16
("C:\\Dev\\Source\\mozilla\\ff-dbg-shared\\dist\\bin"), PR_TRUE,
getter_AddRefs(pCOM_lf));
NS_InitEmbedding (pCOM_lf, nsnull);
//------------------------------------------
If this doesn't work, you need to find out what error you are getting
and where.
Niky Williams
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding