做了个ocx,想放到服务器上,让其他用户能用,不知道怎么发行,打成cab的据说行,不知道用什么工具,大家给推荐推荐方法

解决方案 »

  1.   

    做成cab包,里面包含一个inf文件,文件名和cab包名相同(扩展名当然不同啦),看MSDN里:INF File Architecture,完整的例子。
    html可以这样写:
    插入下面这段就OK:
    <OBJECT id=TestOCX1 
    codeBase=http://xxx.xxx.xxx/TestOCX.cab#Version=1,0,3,0 
    height=263 width=455 classid=clsid:08D9620A-4C37-4FCD-BBD4-CE9120804945>
    <PARAM NAME="Param1" VALUE="XXX">
    </OBJECT><MFC Windows程序设计>里有例子。
    你随便找个有OCX控件的网页就可以看到html怎么写了。
      

  2.   

    inf 这么写行不行
    [Add.Code]
    chat.ocx=chat.ocx
    file=clsid={E17C3C6E-157B-40F4-BD1D-C938E51C3135}
    FileVersion=1,0,0,1
    RegisterServer=yes
      

  3.   

    i use installshiled to packet it.this tool support a self-regesiter way.in html i write:
      <OBJECT ID="NetMonitorIE"  CLASSID="CLSID:6F769923-952C-41B0-A9B0-709F4826A07B"
       codebase="SCMonitor.exe"
       HEIGHT=390 WIDTH=600>
      </OBJECT>
    (NetMonitorIE is an OCX name,CLASSID is ocx class id,SCMonitor.exe is exe packeted by installshield.)
    this will support a easy way to auto download and self register ocx.
      

  4.   

    现在数字签名做好了,可是我调用ocx里面的函数时  还出现 Acitvex 不安全的提示,该怎么解决那
      

  5.   

    直接在网页中调用此ocx就可以了,为什么还要用打包的形式?