Re: HELP!!! swt + mozilla (adtional questions)

jml <[email protected]> Fri, 03 Jan 2003 09:07:10 +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]>
Doug Turner wrote:
> 
> Good to hear that your embedding is on it feet!
> 
> The code to the XPIDL compiler is here:
> 
> http://lxr.mozilla.org/seamonkey/source/xpcom/typelib/xpidl/
> 
> You may be interested in:
> 
> http://lxr.mozilla.org/seamonkey/source/xpcom/typelib/xpidl/xpidl_java.c
> 
> Which is suppose to generate java interfaces based on the IDL file.
>

I found the code, but that is not generating the java code I needed. I
also try to read the source code to see whether I can change it, then
soon I got lost -- seemed I need to understand libIDL, then I need to
understand glib ... Is there any document for this part?

Also, where can I found document for DOMString, and what does the "raise
exception" mean in the XPCOM world -- I mean at the binary level, is it
a C/C++ exception? Or operating system exception?

> Note that you probably want to minimize your linking to xpcom and other 
> Gecko libraries.  Most of the symbols exported are not "frozen" and 
> therefore subject to change.  If you need a conversion unicode->UTF8, 
> you might just wanna lift the code from XPCOM.  If you want something 
> more involve,write up a bug in bugzilla (bugzilla.mozilla.org).  Let see 
> if we can talk to the i18n folks about getting something frozen for you.
>

I just want to write more Java code :-) After several years Java
programming, I have almost forget how to write C/C++ code, especially
when I have no experience of writing cross platform C/C++ code, make me
very hard to compile/debug/hack/ide mozilla.

I don't need unicode->UTF8, just need utility methods to manipulate the
nsAString and nsACString. They are too complicated C++ classes for me :-)

> Happy New Year,
> 
Thanks

jml