Software Archive
Read-only legacy content
17060 讨论

Passing objects from VB to CVF COM server

Intel_C_Intel
员工
1,518 次查看
I am trying to use the VARIANT datatype to pass data from VB to CVF and vice versa. This appears to be working fine when the VARIANT type is long or double or boolean or something simple like that. However I want to pass a structure. This is not working. I have tried setting the VT type in CVF to VT_VARIANT+VT_BYREF, and VARIANT in VB, but VB just crashes when I do the property GET. I also tried VT_PTR bot no luck. In both cases I am setting VU%PTR_VAL = loc(class). Any help greatly appreciated.
0 项奖励
1 回复
Intel_C_Intel
员工
1,518 次查看
0 项奖励
回复