I had someone contact me just now reporting that part of my script is not working anymore. Looking in the script debugging, this is what shows:
code:
Error: El servidor de Automatización no puede crear el objeto (código: -2146827859).
Archivo: util/util_string.js. Línea: 138.
La función OnWndFirstConfigEvent_CtrlClicked devolvió un error. Código: -2147352567
Line 138 in util_string.js is this:
JavaScript code:
function StringToBinary(strAscii)
{
>>> var fstream = new ActiveXObject("ADODB.Stream");<<<
//Write ascii to stream
fstream.Type = 2; //adTypeString
fstream.CharSet = "ascii";
fstream.Open;
fstream.WriteText(strAscii);
//Read binary from stream
fstream.Position = 0;
fstream.Type = 1; //adTypeBinary
return fstream.Read;
}
So it seems that the ActiveX is not loading properly. Tried doing the reverse of what
this MS article says to DISABLE the ActiveX, but did not work. any other ideas?