我用vc 2005做的mfc activex控件来返回硬盘的序列号,我把ocx和html文件放在一个目录中,在我的机器上用浏览器可以返回值,但是到了其他机器上返回的是结果显示没定义,不是硬盘的序列号,真是不知道为什么,我的html是这样写的:<OBJECT id='pc' classid="clsid:C2C9F49B-11F3-44B2-9B08-3423D0F3F886" CODEBASE="myactive.ocx#version=1,0,0,0" VIEWASTEXT></OBJECT>
<SCRIPT>
alert(pc.GetIDEKey);
alert(pc.GetCPUInfo);
alert(pc.GetMacInfo);
</SCRIPT>谢谢各位高手,我急着解决啊,谢谢了
<SCRIPT>
alert(pc.GetIDEKey);
alert(pc.GetCPUInfo);
alert(pc.GetMacInfo);
</SCRIPT>谢谢各位高手,我急着解决啊,谢谢了
alert(pc.GetIDEKey);
alert(pc.GetCPUInfo);
alert(pc.GetMacInfo);
</SCRIPT>
再看下 classid有没有正确