I have the following in my IDL which MIDL seems to like just fine. I am trying to create a method that returns an array of byte arrays (not a matrix). I am having a problem on the C++ side where neither of the ATL::CComSafeArray<LPSAFEARRAY>
or ATL::CComSafeArray<ATL::CComSafeArray<byte> >
is liked by the compiler. I get a error C2039: 'type' : is not a member of 'ATL::_ATL_AutomationType<T>'
.
[id(1001)] HRESULT Find([out] SAFEARRAY(SAFEARRAY(byte))* features);
STDMETHOD(Find)(/*[out]*/ SAFEARRAY** features)
Is there a better way of passing array of byte arrays around (I am crossing process boundaries)?