how to pass an variant array from vb6.0 to vc 6.0 dll?
Thanks in advance.
Regards,
jjoohhnn.
Take a look at VARIANT or variant_t (_variant_t, __variant_t) in the COM
support class (comdef.h).
A "variant" itself is simply a 16-byte struct containing a int (the type)
and a union (the data). It is never larger no matter what is "stored" in it.
Objects, strings, and arrays are thus passed by pointers or references.
Dereferencing these types requires a certain amount of knowledge about COM
protocols and marshaling techniques.
-ralph
Meant to add ... Or use support classes to manage it for you.
Using ATL to development ActiveX Dlls for use with VB makes the whole
process easier.
-ralph