Nikhil Kadu wrote:
Hi Everybody,

How can I create a user defined class like nsAString and *make it
available to idl file?*

nsAString is to IDL like int, long, double. You'd have to extend the IDL native types to strictly do what you want.


What you will want to do is to wrap nsFoo with an XPCOM class, which implements an interface defined in IDL. Then you can declare something like.

#include "nsIFoo.idl"
[scriptable, uuid(AB6F946A-0E56-4120-A020-2DC2E6AC7E12)]
interface nsIXPDBC : nsISupports
{
    yourIFoo myFunction(yourIFoo);
}

David Bradley
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to