I work with a third-party COM object, in which some of its methods pass values back as a BSTR pointer. Since VBscript only supports attempts of the Variant type to be used in such a way as Object.Method (sMyString), it is reasonable to end up with a "Mismatch Type" error.
I suspect that this error is generated by the COM object itself, and not by the VBscript interpreter, since the object receives a string instead of a pointer. I tried a workaround to define an array of strings, but it still remains the same error.
So I was wondering if anyone had a similar problem and what workarounds were used.
Just to emphasize. I have no control over the COM object. This is a vendor application. I have to use it "as is".
Thanks Albert Gareev
source share