Met more problems when I try to do more things.
As I don't know how to get the webbrowser component, I guess I need call
nsIComponentRegistrar.autoRegister() with parameter, then I noticed it
require a nsIFile. Good thing is that XPCOM.dll include a method of
NS_NewLocalFile(). The NS_NewLocalFile() method require me to pass in an
nsAString, then I am in trouble -- how could I create an nsAString in
Java code?
Then I noticed there is a nsIStringService, if I can pass a pointer that
points to a buffer in ascii or unicode format, then I should be able to
get a nsAString or nsACString from the nsIStringService. If this is
possible, I can still move on with only xpcom.dll, and not including
other mozilla include file or lib file.
So my question here is: how can I get an nsIStringService? What must I
do before I be able to get it? Must I use nsAString or nsACString before
I get nsIStringService?
Thanks
jml
- Re: HELP!!! swt + mozilla (adtional questions) jml
- Re: HELP!!! swt + mozilla (adtional questions) Doug Turner
- Re: HELP!!! swt + mozilla (adtional questions... jml
- Re: HELP!!! swt + mozilla (adtional quest... Doug Turner
- Re: HELP!!! swt + mozilla (adtional q... jml
- Re: HELP!!! swt + mozilla (adtional q... jml
- Re: HELP!!! swt + mozilla (adtio... jml
- Re: HELP!!! swt + mozilla (a... Doug Turner
- Re: HELP!!! swt + mozill... jml
- Re: HELP!!! swt + mozill... Christian Biesinger
- Re: HELP!!! swt + mozill... Christian Biesinger
