在IDL中定义你的传输函数:例如
typedef struct myObj{
WCHAR *wszName;
QWORD cw;
}*LPMYOBJ;long lArrayLenth = 7;
HRESULT TransferStructArray([in, size_is(lArrayLenth )] myObj* arrsVal); //arrsVal参数为结构数组的首地址
不过你定义的结构成员wszName应该是一个范围可确定的成员,才能编译通过