okay, how long in bytes is a VB VARIANT, and what are its parts, basicly i want to create a Varaiant type in asm/c++, or at least be able to accept varaints from vb in dlls etc, first i need to know how its structured.
Printable View
okay, how long in bytes is a VB VARIANT, and what are its parts, basicly i want to create a Varaiant type in asm/c++, or at least be able to accept varaints from vb in dlls etc, first i need to know how its structured.
just something i bookmarked quite a while ago, hope you find it useful:
http://msdn.microsoft.com/archive/de...n_article4.asp
Search for data type _variant_t and _bstr_t.
I think they come with ole2.h or oleaut2.h.
VARIANT and VARIANTARG are the two aliases of the structure behind VBs Variants.
Basically one unsigned int16 that can be set to one of many constants (the variable type, VT_*), three unsigned int16s as padding and for internal use and one large union.
_variant_t is a class that simplifies usage of VARIANTs.