DLL file loaded twice with DLL redirection through manifest
I'm including python.h in my Visual C++ DLL file project which causes an implicit linking with python25.dll . However, I want to load a specific python25.dll (several can be present on the computer), so I created a very simple manifest file named test.manifest : <?xml version='1.0' encoding='UTF-8' standalone='yes'?> <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'> <file name="python25.dll" /> </assembly> And I'm merging it with the automatically embedded manifest file generated by Visual Studio thanks to: Configuration Properties -> Manifest Tool -> Input and Output -