MFC OCX控件 本地静态页面显示,服务器页面不显示。

ghost5216 2015-01-29 06:06:07
制作了一个OCX控件,打成cab包,放到局域网服务器上。
把IE安全选项中activex都设成了启用。
IE浏览器 http://……/xx.jsp访问。
页面上不显示控件。在C:\windows\system32下可以找到释放的文件
注册表中也可以查看到注册信息clsid……。
将网页保存到本地。双击打开,可以看到控件。

请问为什么??是否一定要签名?内网用的小项目需要签名吗?
求解释。




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'testcab.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript">
function test(){
var t=MyOcx1.SetParam("192.168.0.224",8080,"1234","5678","1100");

}
</script>
</head>

<body>
<object classid="clsid:5A46C023-068F-4CAB-823D-550907C897D6" onerror="err();" id="MyOcx1" codeBase="Record.CAB#Version 1,0,0,1" height="400" width="600" >
</object>
<input type="button" value="方法" onclick="test()" />
<div>
<span id="count"></span>
</div>
</body>
</html>


...全文
112 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ghost5216 2015-01-30
  • 打赏
  • 举报
回复
求关注 顶贴给分啊 谢谢

3,245

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧