9

Forgerのwin32APIチュートリアルに従っていて、ファイルを開いてmenu_one.rcVS2010内からその内容を確認することにしましたが、次のエラーが発生しました。

エラー(imgur.com)

両方の場所を再確認しましたが、どちらのファイルも実際には存在しません。私が持っているrcdll.dllの唯一のコピーは次の場所にあります。

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\rcdll.dll and 
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64\rcdll.dll

Windows SDKの修復インストールを試みましたが、問題は解決しませんでした。私は何をすべきか?

4

3 に答える 3

9

このスレッドは、レジストリの問題について言及しています。

Windows 7SP164ビットとVS2010Sp1がインストールされているPCで問題を再現することができました。

私がしなければならなかったのは、から次のレジストリエントリを変更することです

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows]
"CurrentVersion"="7.0"
"CurrentInstallFolder"="C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows]
"CurrentVersion"="7.0.30319"
"CurrentInstallFolder"="C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\"

そして、下に2つのキーがありました

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows]

これは

v7.0
v7.0A

v7.0とそのすべてのサブキーを削除しました。そして、問題は解決されました。

于 2012-05-26T22:00:13.627 に答える
6

v8.0A で実行しているため、レジストリを変更することについて少し心配していましたが、エラー メッセージに記載されているディレクトリに以前のバージョンから rcdll.dll をコピーするだけでエラーを修正できました。

于 2014-07-09T20:44:07.843 に答える
1

VonC's answer is helpful, but in my case it did not solve the problem. There was another registry key that needed to change.

To find that key, I searched regedit for v6.0A since that was the version in the path on my error dialog.
The dialog path was C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\rcdll.dll

Once the key containing v6.0A was found, I replaced the path with what it was on my machine:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin

I also updated the version strings to be v7.0A or 7.0.30319 depending on what the original value was. I found a few of version strings in sub-keys of my search result, so I applied the changes there as well.

On my machine, the key that Visual Studio was using was located in:

[HKEY_USERS\S-1-5-21-627493193-880714491-1605132347-6179\Software\Microsoft\Microsoft SDKs\Windows]
于 2015-02-26T22:24:34.927 に答える