且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

调用LoadLibrary失败与模块找不到错误 - 可能依赖问题

更新时间:2023-01-18 16:06:51

嗯,我解决我的问题,不幸的是这是一个相当明显的解决方案。我补充说,载我的DLL到PATH变量中的目录。显然dll文件不看自己的目录,它们的依赖关系。

Well I solved my problem, and unfortunately it's a fairly obvious solution. I added the directory that contained my dll to the PATH variable. Apparently dlls don't look in their own directory for their dependencies.