loadlibrary 错误码126

来源:https://stackoverflow.com/questions/14361992/dll-load-library-error-code-126

这个问题通常是依赖的dll确实造成的,或者直接依赖,或者间接依赖。
查找办法有两个:

  • 使用 dependency walker
  • 使用 sysinternals utility里面的 Process Monitor( http://technet.microsoft.com/en-us/sysinternals/bb896645),dll加载时跟踪所有文件访问( trace all file access while your dll is trying to load). 这样可以看到dll加载的所有文件,往往可以看到问题所在。

猜你喜欢

转载自www.cnblogs.com/ConfuciusPei/p/12393986.html
今日推荐