Returning byte array from ActiveX
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi All, I'm writing an ActiveX control, and one of the methods needs to return an array of bytes. This array then needs to be used in Javascript and posted via the MSXML2.XMLHTTP (send). I've create a method in my ActiveX class that returns a VARIANT, but what ever way I try to create the VARIANT, this fails. Either I get "type mismatch" when I try to use the data returns, or I get a "Variable uses an Automation type not supported in JScript". Does anyone know some easy way to return a byte array and use in javascript? Cheers, Jub
"If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)