How can i use Image magick in MFC?

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
surezsu

How can i use Image magick in MFC?

Post 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...
Post Reply