Can anybody plz tell me how to pack variants into a safearray using VB and then this safearray as a variant to pass to a COM component????
Thanks in advance!
Printable View
Can anybody plz tell me how to pack variants into a safearray using VB and then this safearray as a variant to pass to a COM component????
Thanks in advance!
what do you mean pack a variant into a safe array?
VBs arrays are safe arrays, so you can just put the variant in there and pass that as required. But... VBs variant is a COM variant, and so you can use it to pass things around directly anyway if you like. No need to wrap stuff in safe arrays.