X
xbdliyu
Unregistered / Unconfirmed
GUEST, unregistred user!
4. 使用ATL开发一个COM组件,使得在浏览器页面中显示一个窗口,播放一个指定URL的AVI文件。例如html文件如下:
<HTML>
<HEAD>
<TITLE> ATL test page for object AVIPlayer</TITLE>
</HEAD><BODY>
<OBJECT ID="AVIPlayer" <
CLASSID="CLSID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">
>
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub AVIPlayer_ClickPlay(url)
AVIPlayer.Play(url)
End Sub
-->
</SCRIPT>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE> ATL test page for object AVIPlayer</TITLE>
</HEAD><BODY>
<OBJECT ID="AVIPlayer" <
CLASSID="CLSID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">
>
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub AVIPlayer_ClickPlay(url)
AVIPlayer.Play(url)
End Sub
-->
</SCRIPT>
</BODY>
</HTML>