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 安全。各位帮忙想想可能是那里出了点问题 --
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 安全。各位帮忙想想可能是那里出了点问题 --