How to read image from MFC in VC++?

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

How to read image from MFC in VC++?

Post by surezsu »

Hi all,

I need to play with image magick in dialog based application of vc++(MFC) and i have installed the image magic(dynamic dll of binary version).

when i use the below code snippet,got runtime error.....

Code:

Code: Select all

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

{
Image img;
img.read("c:\\logo.jpg");
}
Error is:

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

Anybody know the solution to this,please let me know as soon as possible....

Thankx in advance...
Post Reply