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)

and

res = NS_NewArray(getter_AddRefs(m_mymutablearray));
(error: NS_NewArray is not defined)

I am using gecko-sdk 1.8

Can somebody provide an example of using arrays with gecko sdk?

Thanks in advance