D
Demian
Hi,
I developed an OCX in VC++, wich takes a VARIANT as parameter and
return a Long as the result of the operation. This VARIANT cames from
a client VB6.0 wich send an array of Byte as a VARIANT, so acomplish
Autonmation std.
I need to access the array inside the variant to load an user-defined
struct with it. To do this I used the myvariant->parray.pvData but it
didn't work. It seems that the data wasn't there...
I tried with COleSafeArrary, SAFEARRAY and SAFEARRAYBOUND, and more.
Is there any form to load a Memfile with the data in that array? so I
can later use ReadFile to read it in pieces, so I can load every part
of the structure once a time.
Any help on this?
Thanks.
I developed an OCX in VC++, wich takes a VARIANT as parameter and
return a Long as the result of the operation. This VARIANT cames from
a client VB6.0 wich send an array of Byte as a VARIANT, so acomplish
Autonmation std.
I need to access the array inside the variant to load an user-defined
struct with it. To do this I used the myvariant->parray.pvData but it
didn't work. It seems that the data wasn't there...
I tried with COleSafeArrary, SAFEARRAY and SAFEARRAYBOUND, and more.
Is there any form to load a Memfile with the data in that array? so I
can later use ReadFile to read it in pieces, so I can load every part
of the structure once a time.
Any help on this?
Thanks.