Hi Everybody,
How can I create a user defined class like nsAString and make it
available to idl file?
for eg. if my defined class is 'nsFoo' then my idl file should look like:
#include "nsISupports.idl"
[scriptable, uuid(AB6F946A-0E56-4120-A020-2DC2E6AC7E12)]
interface nsIXPDBC : nsISupports
{
nsFoo myFunction(nsFoo);
}
As far as I know u just have to define the class and its methods and
create a static library. No need of making any xpcom component. But how will the idl file know that nsFoo is a user defined type?
Thanking you,
Nikhil Kadu
How can I create a user defined class like nsAString and make it
available to idl file?
for eg. if my defined class is 'nsFoo' then my idl file should look like:
#include "nsISupports.idl"
[scriptable, uuid(AB6F946A-0E56-4120-A020-2DC2E6AC7E12)]
interface nsIXPDBC : nsISupports
{
nsFoo myFunction(nsFoo);
}
As far as I know u just have to define the class and its methods and
create a static library. No need of making any xpcom component. But how will the idl file know that nsFoo is a user defined type?
Thanking you,
Nikhil Kadu
Yahoo! India Matrimony: Find your life partner online.
