variant arrays..
-
any place to get detailed info on variant arrays..and how to use them??
-
any place to get detailed info on variant arrays..and how to use them??
MSDN. A variant array is just that, an array of VARIANT types, use just like any other kind of SAFEARRAY, except of course, that your basic array type is VARIANT rather than BSTR or whatever. It's worth remembering that SafeArrayGetElement and SafeArrayPutElement deal with COPYING the data they work with, so Get gives you a new, second, copy and Put will not care what you do with the original you pass it. This is true for other "managed" types (IUnknown, BSTR etc) not just VARIANTs. Of course, your element type is determined by the .vt member of each element, not by the type of the array, but each element is the same size :) Steve S