Loading a bitmap over a network
-
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
-
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
You'd need to first make a HTTP connection, then try it. Also you need to make sure that image can be read.
-
You'd need to first make a HTTP connection, then try it. Also you need to make sure that image can be read.
thanks for the response. What is the easiest way to make an http connection? -Jack Mott jackm@scalablesoftware.com
-
thanks for the response. What is the easiest way to make an http connection? -Jack Mott jackm@scalablesoftware.com
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.