I have an MFC ActiveX control, one property of which should expose an ATL COM object from within the same dll. The ATL object is a collection of other ATL objects, although I don't *think* that's important.
My problem is that, although I can get the interface to recognize what I'm trying to do (ie in VB the intellisense works) I can't get the COleControl to expose the custom control.
I'm new to this, so I guess I'm looking for someone to hold my hand a bit through it. Depending on how complicated the question is, I might raise the points.
Some background info:
the odl code for the interface:
[propget, id(2)] long Series([out, retval] ISeriesCollection* *pVal);
where ISeriesCollection is my interface to the ATL object which is a collection of ATL objects.
the declaration of the corresponding class declaration (within the AFX_DISPATCH comments):
afx_msg long GetSeries(ISeriesCollection **pVal);
The definition after the BEGIN_DISPATCH_MAP() macro:
DISP_PROPERTY_PARAM(CGraphMFCCtrl, "Series", GetSeries, SetNotSupported, VT_R8,VTS_VARIANT)
I've seen some code for how to do this exact thing with ATL, but my control is MFC.
All help gratefully accepted.