Hi,

Thanks for your reply.

> In C++, backslashes have special meaning. You need to escape them 
> "C:\\Program Files\\..."

However, it was my mistake while sending the previous note.
I actually wrote as
"C:\\Program Files\\..."


Here is what I actually wrote.
---
  nsCOMPtr<nsILocalFile> appDir;
  NS_NewLocalFile(NS_LITERAL_STRING("c:\\Program Files\\mozilla.org\\Mozilla"),
  PR_FALSE,getter_AddRefs(appDir));

  DirSvcProvider* provider = new DirSvcProvider();
  NS_ADDREF(provider);
  nsresult rv = NS_InitEmbedding(appDir,provider);
  NS_RELEASE(provider);


  if (NS_SUCCEEDED(rv)) {
    rv = NS_TermEmbedding();
  }
---

Regards,
Shoji Urashita

_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to