can't load magick dlls from the same path of the executable

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
hakiim35
Posts: 19
Joined: 2010-02-18T07:04:01-07:00
Authentication code: 8675308

can't load magick dlls from the same path of the executable

Post by hakiim35 »

Hi, I am using magick++ API for my project.
I am developing an image processing app on Win XP.
I want all the related dlls to be loaded from the same folder of the app exe.
But each time I load a png for instance, visual studio loads the dll from the installation path of the magick: "C:\Program Files\ImageMagick-6.6.0-Q16\modules\coders\IM_MOD_RL_png_.dll" .
Even though I put that file into the same path of the app's executable and add the path to the system Path, the app loads it from the above path.
It can load CORE_RL_magick_.dll and CORE_RL_Magick++_.dll from the same path of the app executable, but can't load the dll under the "C:\Program Files\ImageMagick-6.6.0-Q16\modules\"
What can I do to make the app to load the related dlls under the modules\, from the same path of its executable?
Post Reply