I generate 2 DLL l1.dll and l2.dll.
l2 depends on l1.
Running on vista64, with VS2005, Release/x64, I compile and link successfully those 2 dll (using the static runtime /MT /Machine:X64)
When I open l1.dll with dependency walker(VisualStudio8Common7ToolsBindepends.exe), there are errors
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
l1.dll(64bit) depends on libguide40.dll(64bit) and syswow64kernel32.dll (which depends shows as x86 lib, therefore the 2nd error)
libguide40.dll(64bit) then depends on syswow64kernel32.dll (it has 1 unresolved import, marked in red: RtlUnwindEx). syswow64kernel32.dll depends on ntdll.dll (at this level no unres imports)
Then, syswow64kernel32.dll depends on ntdll.dll . kernel32.dll here has 4unresolved imports (RtlLookupFunctionEntry, RtlPcToFileHeader, RtlUnwindEx, RtlVirtualUnwind)
Error: Modules with different CPU types were found.
All this matters because I try to run an exported __stdcall function from l2 in Excel2007, which fails with an error 48.
ps: I posted also on VS forums.