i'm have a project. seem Attach;
run the Test.htm file. but the "javascript:  alert(document.all.MyTestObj.Detach);" result is "undifined";
where the problems in my project?

Test.htm:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<TITLE>MyTestObj </TITLE>
</HEAD>
<BODY >
<OBJECT ID="MyTestObj" CLASSID="CLSID:18D2B8E7-103D-40ea-BE63-34706BD73476" ></OBJECT>
<script>
alert(document.all.MyTestObj.Detach);
</script>
</BODY>
</HTML>


Attachments:
Posted on 2005-07-07 21:42:47 by AirSky
your interface is marked as "dual", but impelmentation of method Invoke is dummy. That's bad for scripting languages, because usually they will use Invoke and not use the vtable directly to call a method. Furthermore, you should add IDispatch to the list of supported interfaces.

Posted on 2005-07-08 07:16:45 by japheth