ActiveX object not loading in IE
- From: "Jeremy Chapman" <please@Idontlikespam>
- Date: Wed, 8 Nov 2006 12:10:02 -0800
I hope this is the right group...
I've built an ActiveX object using Visual Studio 2005. The object has one
class and one method called Run().
I've built a web page which is shown below. The problem is on some systems
the page generates an object expected error when it tries to call the Run()
command. On other systems the Run() command executes fine. It appears that
the dll is being registered fine, as I've looked in the registry and found
the entries for the classes and guids. Are there other settings I need to
set to allow it to run? We've tried this in IE 6 and 7.
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<script>
function runapp()
{
alert("1");
var p = null;
if(document.getElementById)
{
p = document.getElementById("IHARAP");
}
else if (document.layers)
{
p = document.layers["IHARAP"];
}
else if (document.all)
{
p = document.all("IHARAP");
}
alert(p); //<<-- returns "[Object]" always which is good
p.Run(); //<<-- error happens here
alert("2");
}
</script>
<body>
<form id="form1" runat="server">
<div>
<object id="IHARAP"
CLASSID="clsid:{3140F2C1-B7B8-4FA3-B960-3F0459237757}"
CODEBASE="http://testsite/iharap.dll#Version=1,00,0000"
BORDER="0" VSPACE="0" HSPACE="0" ALIGN="TOP" HEIGHT="0%" WIDTH="0%"
onreadystatechange="runapp()">
</object>
</div>
</form>
</body>
</html>
.
- Follow-Ups:
- Re: ActiveX object not loading in IE
- From: Igor Tandetnik
- Re: ActiveX object not loading in IE
- Prev by Date: Re: how STA to prevent multi-threads to access single object
- Next by Date: Re: ActiveX object not loading in IE
- Previous by thread: Re: how STA to prevent multi-threads to access single object
- Next by thread: Re: ActiveX object not loading in IE
- Index(es):
Relevant Pages
|