Hi,

Thanks for your answer.

nsIArray.h is not included in gecko-sdk, that's why I cannot include
it.
I have seen examples of array creation in firefox source code using
that header, but I am not using the mozilla build, but the gecko-sdk

Mark


On Aug 7, 2:13 pm, Benjamin Smedberg <[EMAIL PROTECTED]> wrote:
> Mark wrote:
> > Hello,
>
> > I am trying to develop an XPCOM component that has read only
> > attributes of type nsIMutableArray. However, I am unable to create
> > code to instantiate objects of that type. I tried:
>
> >   do_CreateInstance(NS_ARRAY_CONTRACTID)
> >   (error: incomplete type 'nsIMutableArray' used in nested name
> > specifier)
>
> Did you #include "nsIArray.h" ? That sounds like a compiler error where you
> have forward-declared "class nsIMutableArray;" but never included the actual
> class declaration header.
>
> --BDS


_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to