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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Read a jpeg file

Read a jpeg file

Scheduled Pinned Locked Moved C / C++ / MFC
jsonlearning
4 Posts 3 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.
  • A Offline
    A Offline
    Abhi Work
    wrote on last edited by
    #1

    Hi!!! I am trying to load a jpeg file as a resource.For that I need to read a .jpg file into a buffer. I am using Win32 API and VC6.Any suggestions r welcome. :):)

    A J 2 Replies Last reply
    0
    • A Abhi Work

      Hi!!! I am trying to load a jpeg file as a resource.For that I need to read a .jpg file into a buffer. I am using Win32 API and VC6.Any suggestions r welcome. :):)

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

      CxImage class has a LoadResource() method.

      1 Reply Last reply
      0
      • A Abhi Work

        Hi!!! I am trying to load a jpeg file as a resource.For that I need to read a .jpg file into a buffer. I am using Win32 API and VC6.Any suggestions r welcome. :):)

        J Offline
        J Offline
        Joe Woodbury
        wrote on last edited by
        #3

        I wrote an article on how to do this with GDI+. The only problem will be if you won't have GDI Plus on the target machines. http://www.codeproject.com/vcpp/gdiplus/cgdiplusbitmap.asp[^] Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

        A 1 Reply Last reply
        0
        • J Joe Woodbury

          I wrote an article on how to do this with GDI+. The only problem will be if you won't have GDI Plus on the target machines. http://www.codeproject.com/vcpp/gdiplus/cgdiplusbitmap.asp[^] Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

          A Offline
          A Offline
          Abhi Work
          wrote on last edited by
          #4

          Thanx guys. I managed to do it with OleLoadPicture() with the help of a article from Dr. Yovav. http://codeguru.earthweb.com/bitmap/CPicture.html :):):)

          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