J
jdyer521
Hello. I have an COM object that was written in C# using ASP.NET. This
is a COM object. I was able to instantiate this COM object using C++
code. (I hadto import the tlb file at the top of the C++ file.)
Now I need to write JavaScript to access this COM object. The code I
am using is this:
try
{
var myCOMObject = new ActiveXObject("progid");
}
catch (err)
{
}
where progid is the progid from the registry. (It's under
KEY_CLASSES_ROOT\CLSID\(guid)\ProgID.
This is going into the catch block. The error it is getting
(err.number) is -2146827859. I searched the Web, and this error code
means "Automation server can't create object."
What am I doing wrong? I need to create this COM object in JavaScript.
Many thanks in advance for the help.
Justin
is a COM object. I was able to instantiate this COM object using C++
code. (I hadto import the tlb file at the top of the C++ file.)
Now I need to write JavaScript to access this COM object. The code I
am using is this:
try
{
var myCOMObject = new ActiveXObject("progid");
}
catch (err)
{
}
where progid is the progid from the registry. (It's under
KEY_CLASSES_ROOT\CLSID\(guid)\ProgID.
This is going into the catch block. The error it is getting
(err.number) is -2146827859. I searched the Web, and this error code
means "Automation server can't create object."
What am I doing wrong? I need to create this COM object in JavaScript.
Many thanks in advance for the help.
Justin