Reputation: 1457
I've got a new computer with Win7-64 on it. I installed VS2010, and am trying to compile a C++ unmanaged DLL for a 32-bit environment. When I look at the created DLL in Dependency Walker, I see my file is 32-bit, but all dependent DLLs are 64-bit, and the error message: Modules with different CPU types were found.
What do I need to do so that the DLL is usable, and I don't see an error in depends.exe?
Upvotes: 2
Views: 993
Reputation: 283614
You need to use 32-bit Dependency Walker (both can be installed on the same machine).
Dependency Walker isn't smart enough to use the WOW64 directories, so 32-bit dependencies are only found when Dependency Walker is itself running inside WOW64.
Upvotes: 1