I am trying to convert the following function from VBScript to JavaScript:
Object.UtilBlobToVariant(VARIANT *pV, long BlobPointer, long BlobSize)
Where pv
is defined as:
A VARIANT that is returned with type (VT_ARRAY|VT_U1)
The UtilBlobToVariant
function is part of a 3rd party COM library, so I can not change its definition.
The two long parameters work just fine in my JavaScript version of this function, but the parameter pV
gives me a "Type mismatch" error afterwords because pV
always comes back as undefined.
Object
is an ActiveX object, so my target is strictly Internet Explorer because of this and other COM dependencies. I have tried just passing a var, or instantiating it as an empty array []
or an empty object {}
but none of these have worked. Is this even possible?