Hello all,

I've 2 interfaces:

interface A {...};

interface B {
 A GetA ();
}

Inside implementation of B::GetA it is required to create object A,
and also get the access to implementation (not interface) of A in
order to initialize A object.

I use C++.

How to do this?

Can I do so?

NS_IMETHODIMP B::GetA (A** _retval)
{
  ClassA* pA = new ClassA;
  pA->somefunc (parameters...);
  pA->AddRef ();
  *_retval = pA;
}



Best regards,
Alexander Dyagilev

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

Reply via email to