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. Save an image using CImage class

Save an image using CImage class

Scheduled Pinned Locked Moved C / C++ / MFC
help
24 Posts 6 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.
  • M Mark Salsbery

    If you step into the Save method in the debugger, where is the error occurring?

    Mark Salsbery Microsoft MVP - Visual C++ :java:

    V Offline
    V Offline
    VC Maniac
    wrote on last edited by
    #21

    In the CBitmap Save call. It returns Win32Error.

    M 1 Reply Last reply
    0
    • L Luc Pattyn

      does that mean you got it to work? if so, how? :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      I use ListBoxes for line-oriented text, and PictureBoxes for pictures, not drawings.


      V Offline
      V Offline
      VC Maniac
      wrote on last edited by
      #22

      Ya I got it to work. But it still doesn't work the way it should. I set the required path as current directory and then I call Save with only filename as the parameter (no path prefixed, since it still doesn't work that way.)

      1 Reply Last reply
      0
      • V VC Maniac

        This didnt work either..

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #23

        Can you show your code for save and show how did you attach bithamp handle?

        Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

        1 Reply Last reply
        0
        • V VC Maniac

          In the CBitmap Save call. It returns Win32Error.

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #24

          There shouldn't be a CBitmap::Save call....it should be a Gdiplus::Bitmap::Save call.

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          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