1.使用file菜单上的new命令,翻到activex页,双击activeform打开activeform向导。
new activex name 框内显示的是activeform的默认名称
implementation unit 是active form实现单元的默认名称
project name 显示是active form 的项目名称
threading model 用于选择线程模式
2.选中make control licensed 生成许可文件
选中include version information 包含版本信息
选中include about box 包含about框
3.发布到web服务器
project菜单上web deployment options打开project页,target dir 用于指定activex控件或activeform 的ocx文件在web服务器上的 路径,可以是常规的路径c:\lll\activex\,也可\\server\ocx
target url用于指定activex或activeform在web服务器上的url,如http://remothost/ddff/ 或http://dfdf.com/
html dir 用于指定一个html文件路径,如c:\inetpub\wwwroot 该html嵌入了 要发布的activex或activeform,可指定一个本地url 如file:///cL\dfdf\
4.activex或activeform的ocx可以与相关的包及其他文件捆绑并压缩在一个文件中,即cab文件,
5.packeges页指定随activex或activeform一起发布的包
6.additional files页用于指定随ocx一起发布的其他文件
7.使用project-》web deploy,先判断当前的activex是否需要重新编译,然后把编译生成的ocx文件和html文件分别放到target dir 和html dir 设定的目录中,供用户通过web浏览器下载。
8.保证在web服务器上的cab及html文件虚拟目录正确,客户端网络设置安全性合理,或将该web站点设为可信站点
9.通过web 访问web服务器,可先清除本地c:\winnt\downloaded program files\下的不用或需更新的activex控件