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. Unable to load bitmap

Unable to load bitmap

Scheduled Pinned Locked Moved C / C++ / MFC
graphicstutorialquestion
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.
  • N Offline
    N Offline
    Nilesh K
    wrote on last edited by
    #1

    Hi, I'm trying to load a bitmap by following code but it always returns me a NULL handle LoadBitmap(NULL,"bitmapfile.bmp"); any pointers for how to make the code work? P.S. Bitmap is in application folder, also I have tried with complete path. Ciao - Nilesh

    J U 2 Replies Last reply
    0
    • N Nilesh K

      Hi, I'm trying to load a bitmap by following code but it always returns me a NULL handle LoadBitmap(NULL,"bitmapfile.bmp"); any pointers for how to make the code work? P.S. Bitmap is in application folder, also I have tried with complete path. Ciao - Nilesh

      J Offline
      J Offline
      Jack Puppy
      wrote on last edited by
      #2

      LoadBitmap is used for loading resource bitmaps. Try http://support.microsoft.com/kb/q158898/

      :suss: Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!

      N 1 Reply Last reply
      0
      • N Nilesh K

        Hi, I'm trying to load a bitmap by following code but it always returns me a NULL handle LoadBitmap(NULL,"bitmapfile.bmp"); any pointers for how to make the code work? P.S. Bitmap is in application folder, also I have tried with complete path. Ciao - Nilesh

        U Offline
        U Offline
        usman999_1
        wrote on last edited by
        #3

        Use LoadImage API if you want to load from the disk. Hope this helps, Usman.

        1 Reply Last reply
        0
        • J Jack Puppy

          LoadBitmap is used for loading resource bitmaps. Try http://support.microsoft.com/kb/q158898/

          :suss: Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!

          N Offline
          N Offline
          Nilesh K
          wrote on last edited by
          #4

          that works.. thanks a lot :) - Nilesh

          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