VS2012:“找不到资源编译DLL。请确保路径正确。 [英] VS2012: “Cannot find the resource compiler DLL. Please make sure the path is correct.”

查看:3578
本文介绍了VS2012:“找不到资源编译DLL。请确保路径正确。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试打开一个VC ++ 2012项目(MFC)资源编辑的资源视图时,我得到这个错误:找不到资源编译器DLL。请确保路径是正确的。

When I try to open a resource view of a VC++ 2012 project (MFC) for resource editing, I get this error: "Cannot find the resource compiler DLL. Please make sure the path is correct."

我在SO上找到了一个更早的问题:VS2010:找不到资源编译器DLL请确保路径是正确的和许多其他类似通过谷歌,但没有任何建议给予帮助。修复了我的VS2012安装程序,做了所有的文章中提到的注册表调整。似乎DLL需要的是rcdll.dll,发现它在几个Windows SDK Bin目录中,将它们添加到系统路径(32位和x64目录),但仍然没有任何内容。

I did find an earlier question on SO: "VS2010: "Cannot find the resource compiler DLL. Please make sure the path is correct." and many other similar through Google, but none of the advise given there helps. Did twice the repair of my VS2012 setup, did try all the registry tweaks mentioned in the articles. It appears that the DLL needed is rcdll.dll, found it in several Windows SDK Bin directories, added them to the system path (both 32-bit and x64 directory), and still nothing.

耗时超过4小时

Greg

推荐答案

它出来,一个小时左右跟踪所有的文件和注册表访问调用VS2012 devenv.exe,使用Sysinternals procmon。事实证明VS2012,至少在我的系统上,只寻找这个键,忽略一切:

Finally figured it out, after an hour or so tracing all the file and registry access calls VS2012 devenv.exe makes, using Sysinternals procmon. Turns out that VS2012, at least on my system, was looking only for this key, ignoring everything else:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v8.0

一旦我设置 InstallationFolder 值到有效的Windows SDK文件夹(无论是否是版本7,7.1或8.1 SDK),所有都开始正常工作。奇怪的是,类似问题的所有其他帖子建议设置:

Once I set the InstallationFolder value there to a valid Windows SDK folder (no matter if it was version 7, 7.1 or 8.1 SDK), all started working normally. What's strange is that all other posts on similar problems were suggesting to set:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows

CurrentInstallFolder CurrentVersion 到您希望它使用的SDK,它应该工作。不是这样,只有上面提到的关键和价值被阅读和尊重。重新安装Windows 7.1和8.1 SDK几次也没有帮助。

value of CurrentInstallFolder and CurrentVersion to whichever SDK you wanted it to use, and it was supposed to work. Not so, only the above mentioned key and value was read and respected. Reinstalling Windows 7.1 and 8.1 SDKs several times was not helping either.

也许它是VS2012 Update 4中的某种错误,这是在撰写本文时最新的。

Maybe it's some kind of bug in VS2012 Update 4, the most current at the time of this writing. So many hours lost on a stupid issue like this, hope this writeup helps someone else to avoid such loss.

Greg

这篇关于VS2012:“找不到资源编译DLL。请确保路径正确。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆