在IDL中定义你的传输函数:例如
typedef struct myObj{
WCHAR *wszName;
QWORD cw;
}*LPMYOBJ;long lArrayLenth = 7;
HRESULT TransferStructArray([in, size_is(lArrayLenth )] myObj* arrsVal); //arrsVal参数为结构数组的首地址
不过你定义的结构成员wszName应该是一个范围可确定的成员,才能编译通过
typedef struct myObj{
WCHAR *wszName;
QWORD cw;
}*LPMYOBJ;long lArrayLenth = 7;
HRESULT TransferStructArray([in, size_is(lArrayLenth )] myObj* arrsVal); //arrsVal参数为结构数组的首地址
不过你定义的结构成员wszName应该是一个范围可确定的成员,才能编译通过
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货