你的OCX是如何安装的?OCX是否在管理员群组下安装的?
以下链接告诉你在Vista以上的系统,对activex安装需要做的处理:
http://technet.microsoft.com/en-us/library/cc721964%28WS.10%29.aspx

解决方案 »

  1.   

    和安装没关系,你的OCX和宿主的权限是一样的,IE是低权限运行的,你的OCX当然没权限创建文件夹了
      

  2.   

    权限问题。
    1、可能你的安装程序本身也有权限问题。
    检查你安装ocx的程序是否以管理员身份运行。2、最好参考一下链接的说明。通读一遍,至少了解怎么安装ocx才更合适。
      

  3.   

    应该不是简单的权限继承。ocx注册时,会以当时运行的身份权限(管理员帐号、用户帐号)。当以管理员帐号注册时,他的权限可以比宿主高。当IE以管理员身份运行时,可能IE会把权限低的ocx提升到跟自己同级,所以ocx即使权限低,也可用。关于注册ocx时,身份的归组,MSDN链接有说明:
    Many organizations must install ActiveX controls on their desktops in order to ensure that a variety of programs that they must use on a daily basis will work properly. However, most ActiveX controls must be installed by a member of the Administrators group and many organizations have configured or want to configure their users to run as standard users, which are non-administrative users that are members of the Users group.从使用便利角度看,ocx可以拥有比IE高的权限,也应该是合理的;不然又是怨声载道了。
      

  4.   

    应该不是简单的权限继承。ocx注册时,会以当时运行的身份权限(管理员帐号、用户帐号)。当以管理员帐号注册时,他的权限可以比宿主高。当IE以管理员身份运行时,可能IE会把权限低的ocx提升到跟自己同级,所以ocx即使权限低,也可用。关于注册ocx时,身份的归组,MSDN链接有说明:
    Many organizations must install ActiveX controls on their desktops in order to ensure that a variety of programs that they must use on a daily basis will work properly. However, most ActiveX controls must be installed by a member of the Administrators group and many organizations have configured or want to configure their users to run as standard users, which are non-administrative users that are members of the Users group.从使用便利角度看,ocx可以拥有比IE高的权限,也应该是合理的;不然又是怨声载道了。
    从msdn找到有关佐证:http://msdn.microsoft.com/en-us/library/Bb250462.aspx
    •Two higher privilege broker processes allow Internet Explorer and extensions to perform elevated operations given user consent.
      

  5.   

    应该不是简单的权限继承。ocx注册时,会以当时运行的身份权限(管理员帐号、用户帐号)。当以管理员帐号注册时,他的权限可以比宿主高。当IE以管理员身份运行时,可能IE会把权限低的ocx提升到跟自己同级,所以ocx即使权限低,也可用。关于注册ocx时,身份的归组,MSDN链接有说明:
    Many organizations must install ActiveX controls on their desktops in order to ensure that a variety of programs that they must use on a daily basis will work properly. However, most ActiveX controls must be installed by a member of the Administrators group and many organizations have configured or want to configure their users to run as standard users, which are non-administrative users that are members of the Users group.从使用便利角度看,ocx可以拥有比IE高的权限,也应该是合理的;不然又是怨声载道了。
    从msdn找到有关佐证:http://msdn.microsoft.com/en-us/library/Bb250462.aspx
    •Two higher privilege broker processes allow Internet Explorer and extensions to perform elevated operations given user consent.不知道呢,在http://tech.it168.com/d/2007-12-05/200712041740771.shtml里面,貌似说不行
      

  6.   

    应该不是简单的权限继承。ocx注册时,会以当时运行的身份权限(管理员帐号、用户帐号)。当以管理员帐号注册时,他的权限可以比宿主高。当IE以管理员身份运行时,可能IE会把权限低的ocx提升到跟自己同级,所以ocx即使权限低,也可用。关于注册ocx时,身份的归组,MSDN链接有说明:
    Many organizations must install ActiveX controls on their desktops in order to ensure that a variety of programs that they must use on a daily basis will work properly. However, most ActiveX controls must be installed by a member of the Administrators group and many organizations have configured or want to configure their users to run as standard users, which are non-administrative users that are members of the Users group.从使用便利角度看,ocx可以拥有比IE高的权限,也应该是合理的;不然又是怨声载道了。
    从msdn找到有关佐证:http://msdn.microsoft.com/en-us/library/Bb250462.aspx
    •Two higher privilege broker processes allow Internet Explorer and extensions to perform elevated operations given user consent.不知道呢,在http://tech.it168.com/d/2007-12-05/200712041740771.shtml里面,貌似说不行
    他那帖子说明的主要是进程间访问的Integrity level问题。你还没回复我,是否以管理员身份注册这个OCX?若没有,重新注册,看结果如何?
      

  7.   

    应该不是简单的权限继承。ocx注册时,会以当时运行的身份权限(管理员帐号、用户帐号)。当以管理员帐号注册时,他的权限可以比宿主高。当IE以管理员身份运行时,可能IE会把权限低的ocx提升到跟自己同级,所以ocx即使权限低,也可用。关于注册ocx时,身份的归组,MSDN链接有说明:
    Many organizations must install ActiveX controls on their desktops in order to ensure that a variety of programs that they must use on a daily basis will work properly. However, most ActiveX controls must be installed by a member of the Administrators group and many organizations have configured or want to configure their users to run as standard users, which are non-administrative users that are members of the Users group.从使用便利角度看,ocx可以拥有比IE高的权限,也应该是合理的;不然又是怨声载道了。
    从msdn找到有关佐证:http://msdn.microsoft.com/en-us/library/Bb250462.aspx
    •Two higher privilege broker processes allow Internet Explorer and extensions to perform elevated operations given user consent.不知道呢,在http://tech.it168.com/d/2007-12-05/200712041740771.shtml里面,貌似说不行
    他那帖子说明的主要是进程间访问的Integrity level问题。你还没回复我,是否以管理员身份注册这个OCX?若没有,重新注册,看结果如何?[/quote
    你说的注册时怎么注册,我这个控件是打包成cab,点击网页按钮的时候,就会自动下载安装(包括注册)这个控件啊,那如果以管理员身份注册的意思是说以管理员启动IE?还是说用REGSVR32 来注册?,谢谢了,PS:如果是用管理员身份,使用REGSVR32 来注册,或者IE 以管理员身份启动来注册,均尝试了,并且以失败告终,恩,非常感谢那么有耐心的大神
      

  8.   

    应该不是简单的权限继承。ocx注册时,会以当时运行的身份权限(管理员帐号、用户帐号)。当以管理员帐号注册时,他的权限可以比宿主高。当IE以管理员身份运行时,可能IE会把权限低的ocx提升到跟自己同级,所以ocx即使权限低,也可用。关于注册ocx时,身份的归组,MSDN链接有说明:
    Many organizations must install ActiveX controls on their desktops in order to ensure that a variety of programs that they must use on a daily basis will work properly. However, most ActiveX controls must be installed by a member of the Administrators group and many organizations have configured or want to configure their users to run as standard users, which are non-administrative users that are members of the Users group.从使用便利角度看,ocx可以拥有比IE高的权限,也应该是合理的;不然又是怨声载道了。
    从msdn找到有关佐证:http://msdn.microsoft.com/en-us/library/Bb250462.aspx
    •Two higher privilege broker processes allow Internet Explorer and extensions to perform elevated operations given user consent.不知道呢,在http://tech.it168.com/d/2007-12-05/200712041740771.shtml里面,貌似说不行
    他那帖子说明的主要是进程间访问的Integrity level问题。你还没回复我,是否以管理员身份注册这个OCX?若没有,重新注册,看结果如何?[/quote
    你说的注册时怎么注册,我这个控件是打包成cab,点击网页按钮的时候,就会自动下载安装(包括注册)这个控件啊,那如果以管理员身份注册的意思是说以管理员启动IE?还是说用REGSVR32 来注册?,谢谢了,PS:如果是用管理员身份,使用REGSVR32 来注册,或者IE 以管理员身份启动来注册,均尝试了,并且以失败告终,恩,非常感谢那么有耐心的大神
    另,你上面发的那个链接里面说的 Activex Installer Service,我的电脑里面没有
      

  9.   

    所以现在政府单位都不用win8了吧
      

  10.   

    在win8时代遇见ocx的问题,看看如何解决。
      

  11.   

    百度“yhsit” 找一个叫“雨花石博客”的个人博客可能有答案
      

  12.   

    ie控件(.ocx)应该是默认保存在%windir%下的,那个目录win7下不是管理员也能读写吗?
      

  13.   

    OCX里面是可以写文件和创建目录的, 注意不要操作系统盘C:, 改成其他盘如D:, 有相应的权限就可以了.
      

  14.   

    本人之前开发BHO插件的时候,遇到过类似问题,不知道是否适用楼主这个情况
    楼主姑且看看吧
    http://blog.csdn.net/frankiewang008/article/details/27083413,《Windows Vista IE保护模式深度剖析》(如果打不开链接的话,自己百度这个关键字);这里面的解释是“系统不光是查看资源对象的ACL,还要查看进程和资源对象各自的完整性级别(Integrity Level)”,IE的完整性级别是"LOW",只能访问完整性同为"LOW"的目录,
    默认情况,系统中只有以下几个文件夹访问完整性为"LOW"
     (1) IE临时文件: %userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Low
      (2) 系统临时目录: %userprofile%\AppData\Local\Temp\Low
      (3) Cookies: %userprofile%\AppData\Roaming\Microsoft\Windows\Cookies\Low
      (4) 历史: %userprofile%\AppData\Local\Microsoft\Windows\History\Low
    就是说你只可以操作这些文件夹下的文件、文件夹
      

  15.   

    刚刚试了一下,ocx控件好像并不存在我在楼上(29#)写的限制,
    所以那些楼主不需要看了刚刚尝试往C:\\123\\1.jpg写文件能成功;尝试C:\\1.jpg失败
    win8,ocx是用VS2012 C++写的一个摄像头调用控件貌似只是不能放系统盘根目录