doudan5136 2017-09-27 13:21
浏览 280
已采纳

syscall.LoadDLL()在除一台以外的所有计算机上均失败; 我该怎么办?

When I call syscall.LoadDLL("my.dll") in my notebook, it works well.

But when I copy the execution file (.exe) and my.dll to other computers, it will fail and show the following error:

Failed to load my.dll: The specified module could not be found. 

The my.dll could be found in the same directory.

I don't know what happened.

  • 写回答

1条回答 默认 最新

  • dongluan0020 2017-09-27 16:12
    关注

    Your .DLL probably depends on some other .DLL not installed on these other systems. Dependency Walker is a useful tool to debug these types of issues...

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?