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. Loading a bitmap over a network

Loading a bitmap over a network

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomgraphicssysadminhelp
4 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.
  • J Offline
    J Offline
    Jack Mott
    wrote on last edited by
    #1

    I'm currently doing the following to load a bitmap HBITMAP hBitmap =(HBITMAP) LoadImage(NULL,"c:/activextree/closedfolder.bmp",IMAGE_BITMAP,20,20,LR_LOADFROMFILE); But need to be able to pull this off a network. how can I do this? What Id like to do is something like the following (which doesn't work) HBITMAP hBitmap =(HBITMAP) LoadImage(NULL,"http://localhost/foo/closedfolder.bmp",IMAGE_BITMAP,20,20,LR_LOADFROMFILE); thanks for any help -Jack Mott jackm@scalablesoftware.com

    D 1 Reply Last reply
    0
    • J Jack Mott

      I'm currently doing the following to load a bitmap HBITMAP hBitmap =(HBITMAP) LoadImage(NULL,"c:/activextree/closedfolder.bmp",IMAGE_BITMAP,20,20,LR_LOADFROMFILE); But need to be able to pull this off a network. how can I do this? What Id like to do is something like the following (which doesn't work) HBITMAP hBitmap =(HBITMAP) LoadImage(NULL,"http://localhost/foo/closedfolder.bmp",IMAGE_BITMAP,20,20,LR_LOADFROMFILE); thanks for any help -Jack Mott jackm@scalablesoftware.com

      D Offline
      D Offline
      Drake Elsari
      wrote on last edited by
      #2

      You'd need to first make a HTTP connection, then try it. Also you need to make sure that image can be read.

      J 1 Reply Last reply
      0
      • D Drake Elsari

        You'd need to first make a HTTP connection, then try it. Also you need to make sure that image can be read.

        J Offline
        J Offline
        Jack Mott
        wrote on last edited by
        #3

        thanks for the response. What is the easiest way to make an http connection? -Jack Mott jackm@scalablesoftware.com

        D 1 Reply Last reply
        0
        • J Jack Mott

          thanks for the response. What is the easiest way to make an http connection? -Jack Mott jackm@scalablesoftware.com

          D Offline
          D Offline
          Drake Elsari
          wrote on last edited by
          #4

          Well you could connect using the CHttpServer class. I can't help you with it's use, but you should just play around with it, cuz I don't think it's well documented.

          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