Variant Size under Win64
Is someone how what is the size of a tagVARIANT under Win64 ?
I only want to create code that works under Win32 and other code that works under Win64.
All i want to do is to pass an array of tagVARIANT between my assembly and IE JScript engine which only works with IDispatchEx interface. My assembly must CALL / CREATE CONSTRUCTOR(Date, Number, Function...) / ASSIGN properties of JScript objects.
I use GetNativeVariantForObject() .NET function which creates perfectly my VARIANT.
Sometimes, a JScript method required more than one parameter, so i must pass it an array of VARIANTS. That's why the size of the tagVARIANT struct is for me important. It works fine under Win32. But with the new Win64 OS, my assembly needs to work also. I need also to compile my assembly with the 64 bits of .NET 2.0 when it will be officialy released.
Type.InvokeMember is not sufficient to do all the things i do by using IDispatch.Invoke() and IDispatchEx.InvokeEx() functions.
.NET framework lacks of a method like
Marshal.GetVariantSize()

