程序找不到dll文件

程序找不到dll文件

问题描述:

我有一个C#COM程序集,该程序集使用C ++说唱歌手与另一个程序进行通信.一切在我构建C#/C ++程序集的计算机上都可以正常工作,但是当我尝试在另一台计算机上使用程序集时,我不断收到错误消息,指出无法找到.dll.

有没有人知道这里发生了什么?

I have a C# COM assembly that uses a C++ rapper to communicate with another program. Every thing works just fine on the machine that I build the C#/C++ assembly on but when I try to use assembly on another machine I keep getting the error message that the .dll cannot be found.

Does anyone have any idea what is going on here?

首先验证DLL是否实际安装在正确的位置.然后确保还安装了所有依赖项(例如,适当版本的C ++运行时库)
First verify the the DLL is actually installed at the proper location. Then ensure that all dependencies are also installed (for example, the appropriate version of the C++ run-time library)


除了Philippe Mori的正确建议:您确实需要确保您的应用程序所依赖的所有可执行文件都可用并放置在正确的位置.要弄清楚这些依赖关系,请使用Microsoft Dependency Walker:
http://en.wikipedia.org/wiki/Dependency_Walker [ http://msdn.microsoft.com/en-us/magazine/bb985842.aspx [ ^ ],
http://www.dependencywalker.com/ [ ^ ](您可以在此处下载).

—SA
In addition to the correct advice by Philippe Mori: you really need to make sure all the executable your application depends on are available and placed in proper location. To figure out these dependencies, use Microsoft Dependency Walker:
http://en.wikipedia.org/wiki/Dependency_Walker[^],
http://msdn.microsoft.com/en-us/magazine/bb985842.aspx[^],
http://www.dependencywalker.com/[^] (here you can download it).

—SA