Brightman wrote:

> char* grePath ="/home/brightman/mozilla/dist/bin"; rv =
> NS_NewLocalFile(nsEmbedString((const 
> PRUnichar*)grePath),PR_TRUE,getter_AddRefs(greDir));

You are casting a char* to a PRUnichar*, which are different types. To use a
narrow path for an initializer, use NS_NetNativeLocalFile. Otherwise, you
can make a PRUnichar string literal, i.e.:

static const PRUnichar grePath[] = {'/', 'h', 'o', 'm', 'e', '/', 'b', 'r',
'i', 'g', 'h', 't', 'm', 'a', 'n', '/', 'm', 'o', 'z', 'i', 'l', 'l', 'a',
'/', 'd', 'i', 's', 't', '/', 'b', 'i', 'n', '\0' };

--BDS
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to