Joseph T.L. wrote:

I use Gecko in linux ,I have build mozilla successfully,but the code bellow
always fail,this is the first code executed in my program.


If you are embedding Gecko in your own program, you should post to the right newsgroup. See followup-to: header of this message.

Is there something
need be done before I call NS_NewNativeLocalFile?

   nsCOMPtr<nsILocalFile> mreAppDir;
   rv =
NS_NewNativeLocalFile(nsDependentCString("/root/mozilla/dist/bin/testqt.out"
), TRUE, getter_AddRefs(mreAppDir));
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to create mreAppDir localfile");
             ^^^^^^^^^^^^^^^^^always fail,why?

Did you call NS_InitXPCOM2 first?

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

Reply via email to