Shoutbox

ActiveX ADODB.Stream - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: ActiveX ADODB.Stream (/showthread.php?tid=89803)

ActiveX ADODB.Stream by MeEtc on 03-22-2009 at 05:34 AM

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?