Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to read image from MFC using image magick? [modified]

How to read image from MFC using image magick? [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialquestionannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    uresh hanmugam
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • U uresh hanmugam

      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

      A Offline
      A Offline
      Abdellatif_El_Khlifi
      wrote on last edited by
      #2

      Hi, 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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups