Click to See Complete Forum and Search --> : VARIANT and 64-bit integers


Douglas Peterson
April 15th, 1999, 12:02 PM
Why does WTYPES.H define VT_I8 and VT_UI8, but VariantCopy and VariantClear do not handle them (both return DISP_E_BADVARTYPE?

There's also no data type in the union for 64 bit INTs so to put one there you have to hack one of the others.

How does one go about passing 64-bit integers in VARIANTS such that the variant API functions will correctly handle them?

Who's the moron who made the data width of VARIANT 64 bits wide to accomodate double, but failed to add support for 64-bit integers?