dllimport找不到dll,即使它在PATH中 [英] dllimport failed to locate dll even though it is in the PATH

查看:391
本文介绍了dllimport找不到dll,即使它在PATH中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用[Dllimport(DllName.dll)]
我确定我的dll的路径存在于进程PATH环境变量中,仍然是
我得到DllName.dll可以未找到

I use [Dllimport("DllName.dll")] where I'm sure a path to my dll exists in the process PATH environment variable, and still I get "DllName.dll could not be found"

推荐答案

找不到DllName.dll也可能意味着DllImport尚未找到DllName之一。 dll依赖关系。

"DllName.dll could not be found" could also mean that DllImport has not found one of DllName.dll dependencies.

抓住 Dependecy Walker 查看哪些依靠你失踪。

Grab Dependecy Walker to check which dependecy you are missing.

这篇关于dllimport找不到dll,即使它在PATH中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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