Page 1 of 1

How can i use Image magick in MFC?

Posted: 2007-01-08T02:09:15-07:00
by surezsu
Hi all,

I have creating dialog based window in vc++(MFC) and installed image magic(dynamic dll of binary version).

I need to know about InitializeMagic(char *) function. Is Magic must be initialize?... and which path is send to this function as a parameter.
when i read one image using read(std::string) function.....

Code: Select all

#include Magick++.h
#include iostream
using namespace std;
using namespace Magick;

{
Image img;
img.read("c:\\logo.jpg");
}
Error will be thrown like......

Unhandled exception at 0x000c256.. in sample.exe:0xC000075:
Access voilation writing location 0xcde....

Anybody know about this problem let me know...

Thankx in advance...