Software Archive
Read-only legacy content
17060 Discussions

Passing objects from VB to CVF COM server

Intel_C_Intel
Employee
636 Views
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 Kudos
1 Reply
Intel_C_Intel
Employee
636 Views
0 Kudos
Reply