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. Problem in call Bitmap::FromFile GDI function

Problem in call Bitmap::FromFile GDI function

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelp
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.
  • S Offline
    S Offline
    Shivanand Gupta
    wrote on last edited by
    #1

    Hi, I am using VC7. and make thumbnails of images when we call Bitmap::FromFile(L"C:\\Test.bmp") and return value store in Bitmap pointer. It return 0x0000000 address and we get error code 8. I have included gdiplus.h header file and GdiPlus.lib file. But it is working well with other downloaded sample program

    T 1 Reply Last reply
    0
    • S Shivanand Gupta

      Hi, I am using VC7. and make thumbnails of images when we call Bitmap::FromFile(L"C:\\Test.bmp") and return value store in Bitmap pointer. It return 0x0000000 address and we get error code 8. I have included gdiplus.h header file and GdiPlus.lib file. But it is working well with other downloaded sample program

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      need to check your code. can you post code snippet here

      S 1 Reply Last reply
      0
      • T ThatsAlok

        need to check your code. can you post code snippet here

        S Offline
        S Offline
        Shivanand Gupta
        wrote on last edited by
        #3

        I have fully checked and also only call that funcyion but problem still

        S 1 Reply Last reply
        0
        • S Shivanand Gupta

          I have fully checked and also only call that funcyion but problem still

          S Offline
          S Offline
          snailbchen
          wrote on last edited by
          #4

          Do u have the "GdiplusStartup"?

          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