Hi there,
I'm including python.h
in my VC++ dll 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 -> Additional Manifest Files
-->$(ProjectDir)\src\test.manifest
What happens is that python25.dll
is now loaded twice: the one requested by the manifest, and the one that Windows should find through its search order.
Why is that happening and how can I just load the dll pointed by the manifest?
Thanks -David