This is the first time I am trying to use SAFEARRAYs.
I have the following method declaration in IDL:
[
object,
uuid(3454B81A-65A9-4F3E-8678-1D5F82B25837),
oleautomation,
nonextensible,
helpstring("IMyObj2 Interface"),
pointer_default(unique)
]
interface IMyObj2 : IDispatch{
};
[
object,
uuid(EF532C8B-12A9-4FEC-B91C-D7502FD68874),
oleautomation,
nonextensible,
helpstring("IArrayMan3 Interface"),
pointer_default(unique)
]
interface IArrayMan3 : IUnknown{
[helpstring("method GetArray")]
HRESULT _stdcall GetArray2(SAFEARRAY(IMyObj2*)* pArray);
[helpstring("method PutArray")]
HRESULT _stdcall PutArray2(SAFEARRAY(IMyObj2*) pArray);
};
I get the following warning:
warning MIDL2456 : SAFEARRAY(interface pointer) doesn't work using midl generated proxy : [ Parameter 'pArray' of Procedure 'PutArray2' ( Interface 'IArrayMan3' ) ]
Thanks in advance.