网页调用OCX问题(100)

  • 主题发起人 www.0o0.com
  • 开始时间
W

www.0o0.com

Unregistered / Unconfirmed
GUEST, unregistred user!
刚一股脑做了一个ocx控件,刚出炉,还热的, 问题来了,怎么通过网页来调用 ocx呢。谢谢了! delphi下可调用,不知道IE怎么调用!
 
B

bbscom

Unregistered / Unconfirmed
GUEST, unregistred user!
<HTML><H1> Delphi 7 ActiveX Test Page </H1>You should see your Delphi 7 forms or controls embedded in the form below.<HR><center><OBJECT classid="clsid:E8D4B86A-7797-4234-8012-9F58BA2CDA79"<--换为你的clsid codebase="你的程序名.ocx#version=1,1,1,1" width=600 height=400 align=center hspace=0 vspace=0></OBJECT></HTML>
 
D

duxing

Unregistered / Unconfirmed
GUEST, unregistred user!
其实 作为一个delphi 程序员 最重要的是 怎么生成 楼上那段代码的。以delphi6为例: 当新建了并完成了代码设计后,在project 菜单里面有个 web d... options 设置你的路径然后编译 也就是压缩成CAB的过程。 最后在设置路径下 就可以看到一个htm 文件 打开就 能成功调用 在没有数字认证情况下 需要把 IE 设为最低。 最后加载就能看到你的 delphi界面。
 
W

www.0o0.com

Unregistered / Unconfirmed
GUEST, unregistred user!
多人接受答案了。
 
顶部