简体   繁体   English

错误:“无法找到DLL xyz.dll!” Visual Studio 2010

[英]Error: “Unable to find the DLL xyz.dll!” Visual Studio 2010

I´m trying to debug my project in C++ Visual Studio 2010. When I click the debug-button an error appears with: Error: 我正在尝试在C ++ Visual Studio 2010中调试我的项目。单击调试按钮时,出现以下错误:错误:

Unable to find the DLL xyz.dll 找不到DLL xyz.dll

I put the xyz.dll in C:\\Windows\\System32\\* . 我将xyz.dll放在C:\\Windows\\System32\\* I can start the .exe of the project, when the xyz.dll is in the same path. 当xyz.dll位于同一路径时,我可以启动项目的.exe。 So how can I debug my project so that the xyz.dll is recognized? 那么,如何调试我的项目,以便识别xyz.dll

它必须与.exe在同一目录中,否则您可以将path变量修改为该dll的位置,但是对于这种情况,不建议修改path变量。

Well it was an embrassing fault by myself. 好吧,这是我一个令人尴尬的错误。 The Debugger was set on Win32 as default and I was using a x64 dll. 调试器在Win32上默认设置,我使用的是x64 dll。 So I changed the Debugger to x64 and it worked! 因此,我将调试器更改为x64并成功了! Thank you all! 谢谢你们!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM