I use Visual Studio C++ Express Edition 2010. I need to use Magick++ library in my project, so I downloaded ImageMagick for windows Click Here. Next I ran a wizard(configure.exe) with default options from VisualMagick/configure. Then I built generated VisualDynamicMT.sln (debug and release). I set my project: C\C++ \ General \ Additional Include Directories: ImageMagick folder and ImageMagick\Magick++\lib, Linker \ General \ Additional Library Directories: ImageMagick\VisualMagick\lib, Linker \ Input \ Additional Dependencies: CORE_DB_Magick++_.lib. I also copied CORE_DB dll's from ImageMagick\VisualMagick\bin to my project location (Debug). When I try to compile an example code like this:
#include <Magick++.h>
using namespace std;
using namespace Magick;
int main(int argc,char **argv)
{
InitializeMagick(*argv);
Image image( "100x100", "white" );
image.pixelColor( 49, 49, "red" );
image.write( "red_pixel.png" );
return 0;
}
I get an error: Unhandled exception at 0x75e6d36f in testpro.exe: Microsoft C++ exception: Magick::ErrorMissingDelegate at memory location 0x002df2a4.. What is wrong ?