Re: AGAIN: questions swt + mozilla

Christian Biesinger <[email protected]> Fri, 20 Dec 2002 14:59:26 +0100
Newsgroups gmane.comp.mozilla.devel.java,gmane.comp.mozilla.devel.embedding,gmane.comp.mozilla.devel.xpcom
Message-ID <[email protected]>
jml wrote:
> But there is no
> "@mozilla.org/embedding/browser/nsWebBrowser;1"

Does compreg.dat in your Mozilla directory contain that @mozilla.org string?

> NS_GetMemoryManager.free(ptr)? I tried this, but seemed it do not return 
> NS_OK.

Yeah this is basically the right approach, at least in C++ (don't know 
about Java, doesn't it do automatic garbage collection?).

This method does not return any value (it's void)... so clearly, it 
can't return NS_OK :)

> 3. How can I get the nsIStringService service object?

Do a CreateInstance for the contract id "@mozilla.org/stringService;1"
(I don't know the syntax for this in Java)


(Note that this interface is not frozen, so it may change anytime)


-- 
Fiat iustitia et pereat mundus.