Visual studio2010创建MFC的工程中资源视图出现空白问题原因与解决

在使用Visual Studio 2010创建MFC工程时遇到资源视图显示空白的问题,伴随有包未找到的错误提示。尽管能打开旧工程的资源视图,但新建工程则受影响。解决方案是通过工具菜单的“导入和导出设置”,选择重置所有设置,恢复默认配置,从而成功解决该问题。
摘要由CSDN通过智能技术生成

      这几天正在赶几个项目,正准备着手做,没想到开发神器Visual studio2010出现问题了,具体问题是这样的:

打开Visual studio2010创建MFC工程时会出现几个错误提示对话框


然后接着还会跳出好几个错误提示对话框,大概意思就是各种包没有找到,然后创建MFC工程后资源视图为空,但是用Visual打开以前创建的工程,资源视图正常,而且当关闭Visual后直接点击创建工程中的RC文件,可以打开资源视图。在网上找了一阵答案后没发现具体的解决的办法,只是发现一个有点沾边的现象的解决方案,于是我就照着去尝试了一下,没想到成功解决了问题。

    问题分析:

    因为用Visual可以正常打开别的项目文件,所以软件本身没有出现什么问题,再根据错误的提示,就是一些包没有找到,那就是路径的设置出错或者因为其他一些不规范操作导致路径记录被删除,我回忆起之前清理过注册表,有人告诉我注册表清理后会将VS在注册表中的指定路径删除掉,于是解决方法就是将包路径导入进入或者将配置恢复到默认条件下,我采取恢复配置到默认状态。


方法:选择工具-》导入和导出设置-》重置所有设置即可

另外在网上找了直接导入路径法,下面粘贴出来

I am running on a Windows 7 Home Premium x64.

I originally had the VS 2010 C# Express and VS 2010 Web Express with MVC 1/2/3 & Silverlight installed. Also had the VS 2010 SP1 installed. I uninstalled all of those except .NET Framework 4.0.

Subsequently I installed the VS 2010 Ultimate from MSDN on my PC and started experiencing this problem every time I tried to open or create a VS 2010 solution.

The workaround that SEEMS to have worked for me are the scripts from MS on 20/01/2010 at 10:57, only correction was one of the commands on the 3rd batch that was posted as 'query delete' instead of 'delete':

========== Script from Microsoft ==========
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\AutoLoadPackages\{adfc4e66-0397-11d1-9f4e-00a0c911004f} /v {7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB}
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\AutoLoadPackages\{93694fa0-0397-11d1-9f4e-00a0c911004f} /v {7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB}
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Packages\{7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB} /s

reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\AutoLoadPackages\{adfc4e66-0397-11d1-9f4e-00a0c911004f} /v {7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB}
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\AutoLoadPackages\{93694fa0-0397-11d1-9f4e-00a0c911004f} /v {7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB}
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Packages\{7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB} /s

reg query HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\10.0_Config\AutoLoadPackages\{adfc4e66-0397-11d1-9f4e-00a0c911004f} /v {7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB}
reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\10.0_Config\AutoLoadPackages\{93694fa0-0397-11d1-9f4e-00a0c911004f} /v {7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB}
reg query HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\10.0_Config\Packages\{7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB} /s

reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\AutoLoadPackages\{adfc4e66-0397-11d1-9f4e-00a0c911004f} /v {7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB} /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\AutoLoadPackages\{93694fa0-0397-11d1-9f4e-00a0c911004f} /v {7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB} /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Packages\{7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB} /va /f

reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\AutoLoadPackages\{adfc4e66-0397-11d1-9f4e-00a0c911004f} /v {7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB} /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\AutoLoadPackages\{93694fa0-0397-11d1-9f4e-00a0c911004f} /v {7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB} /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Packages\{7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB} /va /f

reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\10.0_Config\AutoLoadPackages\{adfc4e66-0397-11d1-9f4e-00a0c911004f} /v {7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB} /f
reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\10.0_Config\AutoLoadPackages\{93694fa0-0397-11d1-9f4e-00a0c911004f} /v {7A4E
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值