在IE的安全选项里面有一个设置,你可以点击“自定义级别”就可以看到ActiveX和插件的安全设置里有“对标记为可安全执行脚本的....”,这里用户还可以选择是否需要提示。
哧哧,不是说组件开发者说它是安全的,最终的用户就会认为它是安全的。

解决方案 »

  1.   

    There are two ways to  a control as safe for scripting and initialization: 
    Implement the IObjectSafety interface. Provide the following registry keys for the control's CLSID under the Implemented Categories section: 
    The following key s the control safe for scripting: 
    7DD95801-9882-11CF-9FA9-00AA006C42C4 
    The following key s the control safe for initialization from persistent data: 
    7DD95802-9882-11CF-9FA9-00AA006C42C4 
    (MS Support)
    现在我是通过第二种方法实现 scripting and initialization 安全。安全警告总是出现,但是无论你点“是”或者“否”,控件本身都是ACTIVE,而且出现安全警告的同时,控件已经显示出来。其中用到了我的一个同事写的COM,没有实现scripting and initialization 安全。各位帮忙想想可能是那里出了点问题 --