Suppose:
- I have an executable file, named A.exe, it's in path: PathA.
- A.exe loadlibrary B.dll, B.dll loadlibrary C.dll.
- B.dll is in path: PathB. C.dll have a copy in both PathA and PathB.
So my question is: when A.exe loads B.dll, which path of C.dll will be loaded by B.dll?
In my situation, C.dlls have something different,such as one is _cdecl, the other is _stdcall. when removed c.dll in PathA ,A.exe can load B.dll successfully; however when c.dll in PathA exists, it fails
I guess C.dll in PathA will be loaded because of your working path is the path of A.exe.And i think kind of _cdecl dll maybe has some problems when you dynamic load it.