Hi,
I got round this problem by passing in the GRE dir when i called
NS_InitEmbedding..
<CODE>
nsresult rv;
nsCOMPtr<nsILocalFile> file;
rv = NS_NewLocalFile(nsEmbedString(L"C://Program Files//Common
Files//mozilla.org//GRE//1.8a3_2004081709"), PR_FALSE,
getter_AddRefs(file));
if (NS_FAILED(rv))
{
return rv;
}
// initialise mozilla with the GRE path
rv = NS_InitEmbedding(file, nsnull);
if(NS_FAILED(rv))
{
MessageBox(NULL, "FAILED to start mozilla", "FAILED", MB_OK);
return rv;
}
</CODE>
I know you find out the GRE dir form looking through the registry but i've
just hard coded it for now.
Cheers,
Bert
"Paul Mace" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Nicolas Weber wrote:
> > Hi,
> >
> > I've managed to get a little embedding app up and running, it uses only
> > two non-frozen interface (nsIWebNavigation and nsIBaseWindow). However,
> > I need to copy it into the GRE directory to make it run. I've read that
> > I can use GRE_Startup() and GRE_Shutdown() to work around this, but this
> > gives me linker errors (__imp__PR_ReadDir and about 15 other __imp__PR_*
> > symbols). Can someone shed some light?
> >
> > Thanks,
> > Nico
>
> Nico,
>
> Care to share what you've got? I've been following you but using moz
> 1.82rc2 and am still baffled by the InitEmbedding failure. The Debug
> interface loads and then the JSSupports interface load fails on the
> GetFactory.
>
> Paul
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding