How to read image from MFC using image magick? [modified]
-
Hi all, I need to play with image magick on 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:
#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... -- modified at 2:17 Thursday 9th August, 2007 -
Hi all, I need to play with image magick on 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:
#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... -- modified at 2:17 Thursday 9th August, 2007Hi, If you want to use the functions contained in your DLL, you've to load this DLL in the memory space of your process. To do that you need to call the Win32 API function LoadLibrary (see MSDN) . After that you can obtain pointers to the desired function and you would be abele to call it.