HELP!!! swt + mozilla (adtional questions)
jml <[email protected]> Wed, 18 Dec 2002 13:56:46 +0800
| Newsgroups | gmane.comp.mozilla.devel.java,gmane.comp.mozilla.devel.embedding,gmane.comp.mozilla.devel.xpcom |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
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