I've a DLL file that is compiled with visual studio 2008 (suppose stub.dll
), I know the exported function signatures of this DLL, but I don't know about it's internal implementation.
This DLL itself uses some other exported functions from another DLL which I should write (suppose server.dll
)
I'm writing my server.dll
in visual studio 2013 & export all desired functions correctly, my test programs can use exported functions without any problem, but when I want to use stub.dll
it failes to load dynamic library.
Since I've no access to it's source, so I can't debug it to find where the problem is, but I guess it should be some kind of incompatibility between various versions of compiler or linker that I can't use server.dll
within stub.dll
(just about calling convention, I'm sure both of them use _stdcall
calling convention).
any idea?
Asked
Active
Viewed 93 times
0

Ehsan Khodarahmi
- 4,772
- 10
- 60
- 87
-
Show us the error message you are getting. – PMF Jul 06 '14 at 15:39
-
The `stub.dll` is a CSP dll & here is the error that I give: 0x8009001d (Provider DLL failed to initialize correctly.) – Ehsan Khodarahmi Jul 06 '14 at 16:38
-
Did you try to use Dependency Walker (Google it) to resolve the dependencies? – egur Jul 06 '14 at 16:46
-
seems all dependencies are OK! – Ehsan Khodarahmi Jul 06 '14 at 17:22