简体   繁体   中英

Unable to load c++ dll, even VB.Net exe and .dll in same folder

I have application in VB.Net and unmanaged dll. When I run application in my PC it works fine. But when I try to run it in production it gives, 'unable to load dll' error.

In my pc, I have kept .exe and .dll by creating different folder than my actual release folder and it works fine.

My pc is 64 bit machine and production environment is 32 bit.

I have tried all combination like, 'Any Cpu', 'x86', 'Win32', noting seems to work on production machine.

Exe and dll are in same folder, so no need to (I think) worry about path, it is not COM dll, so no need to register (and it is native c++ dll).

I have gone through many questions, used dependency walker as well, still facing problem.

We are using Visual Studio 2012.

Thanks.

Finally I solved problem myself. It was VC++ 12 runtime not installed on production machine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM