Page 1 of 1

How to read image from MFC in VC++?

Posted: 2007-08-08T23:08:27-07:00
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...