vs2005 c++ MFC IE8 添加变量 脚本错误 此网站的某个加载项运行失败
来源:互联网 发布:联想电池修复软件 编辑:程序博客网 时间:2024/05/16 01:30
今天在做C++ MFC,给对话框中控件Edit Control添加变量时,出现一个脚本错误,“此网站的某个加载项运行失败...",这个错误可够莫名其妙的,网上查阅了一些资料发现问题所在,原因是我前几天为了调试javascript,更新了IE到IE8(IE8可以断点调试javascript),IE8增加了安全级别,当MFC在添加变量时会执行IInternetSecurityManager 接口,IE8阻止其执行。解决方法是:在注册表中开放1207策略,如果是vs2005,则需要重新安装sp1补丁,vs2008不需要。以下是英文参考资料:
Some VS2005 and VS2008 Wizards Pop Up Script Error.
Visual C++ team has discovered that after installing the current release of Internet Explorer (Internet Explorer 8), some VC++ wizards do not function correctly. The products affected are Visual Studio 2005 and Visual Studio 2008. Following are the affected wizards:
- Add Function
- Add Variable
- Smart Device – New Project Creation
- Smart Device – Add Class
Invoking any of the above wizards in VS2005 or VS2008 will pop up a script error if IE8 is installed on the machine. We have a workaround for those who have encountered this error.
Please follow the following steps:
- Open regedit (on a 64-bit OS, open the 32-bit regedit)
- Under “HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet
Settings/Zones”, create a new key called 1000 (if it isn't already there)
- Under 1000, create a DWORD entry with:
o Name = 1207
o Type = REG_DWORD
o Data = 0x000000
For the workaround to work on VS2005 however, the VS2005 SP1 (and VS2005 SP1 Update for Windows Vista) has to be installed.
Following is a brief explanation of the problem and the workaround:
The VC++ Wizards Engine implements the IInternetSecurityManager interface. In this implementation it allows or disallows specific actions under certain policies that Internet Explorer queries it about. In IE8 a custom Security Manager now also gets queried about the URLACTION_ACTIVEX_OVERRIDE_REPURPOSEDETECTION policy which IE previously did not delegate to custom security managers when the engine wasn’t running in the iexplore.exe process. The IE engine then fails this action because we don’t have a policy entry for it in the custom zone for VC++ Wizards. We are still investigating whether this change in IE8 is by design and will possibly be addressing it by a fix in either the Wizard or IE components depending on the outcome.
The above workaround lets the policy 1207 (URLACTION_ACTIVEX_OVERRIDE_REPURPOSEDETECTION) to be allowed in zone 1000 (custom zone of VC++ Wizards engine). This allows the wizard code to work as intended.
We apologize for the inconvenience this issue may have caused you.
Thank you
Visual C++ Team
http://blogs.msdn.com/vcblog/archive/2009/03/28/some-vs2005-and-vs2008-wizards-pop-up-script-error.aspx
- vs2005 c++ MFC IE8 添加变量 脚本错误 此网站的某个加载项运行失败
- vs2008 添加方法 脚本错误 此网站的某个加载项运行失败
- 关于VS2008 中添加成员变量提示 此网站的某个加载项运行失败 请检查“Internet选项”中的安全设置是否存在潜在冲突 问题解决办法
- 关于VS2008 中添加成员变量提示 此网站的某个加载项运行失败 请检查“Internet选项”中的安全设置是否存在潜在冲突 问题解决办法
- VS2008 (VS2005) IE8 MFC 类向导 添加成员变量向导 出现脚本错误的解决办法
- VS2005和IE8冲突--此网站的某个加载项失败,请检查Internet选项中的安全设置是否存在潜在冲突
- IE8引起VS2005添加变量出现脚本错误
- 此网站某个加载项运行失败。请检查“Internet”选项中的
- IE8与vs2005冲突 添加MFC类向导错误解决方法—— internet explorer脚本错误
- vs2005 MFC资源编辑添加成员变量向导出现脚本错误的解决方法
- vs2005 MFC资源编辑添加成员变量向导出现脚本错误的解决方法
- 1.1vs2005 MFC资源编辑添加成员变量向导出现脚本错误的解决方法
- VC2005/2008 此网站的某个加载项运行失败,请检查“Internet选项 ”中的安全设置是否存在潜在冲突
- VS2005与IE8导致MFC类向导出现脚本错误无法正常使用的解决办法
- IE8加载项报错,运行不正常的加载项或恶意加载项导致 Internet Explorer 关闭此网页的问题
- vs2005: 使用类视图的向导添加方法或变量的时候会报脚本错误
- VS2005 添加变量向导 出错 ie8
- vs2005或者vs2008使用向导添加成员变量时发生脚本错误的解决方法
- 日志计划开题篇
- CRC实现
- 求解逻辑题谁在说谎?
- 使用Intent-Filter来决定打开方式
- [翻译]High Performance JavaScript(005)
- vs2005 c++ MFC IE8 添加变量 脚本错误 此网站的某个加载项运行失败
- ubuntu 10.04 更新源 sources.list
- Oracle Sql Loader中文字符导入乱码的解决方案
- ARM之看门狗
- 问题解释方式的突破技巧www.themanage.cn
- 领域驱动设计和开发实战
- Visual C++ 6.0各个版本介绍
- oracle的表空间、分区表、以及索引的总结
- 自己胡乱写了个二分搜索,求鉴定。急,