1

EDIT: connection - socket connection

I'm working on stuff that require me to send HBITMAP through the connection, as known the sending is sending strings.

How can I make HBITMAP to string to send OR is there any other way to transfer the HBITMAP?

Ofek .T.
  • 741
  • 3
  • 10
  • 29
  • What is "the connection" connecting. An `HBITMAP` is only valid in the process where it's created. – Cheers and hth. - Alf Jun 08 '14 at 15:34
  • 1
    i guess you are trying to use sockets.you can convert the bitmap to device independent bits(DIB). Once you have that buffer you can just send it out through connection. After receiving the DIB's you can construct the image back. – RC Brand Jun 08 '14 at 15:40
  • @RCBrand but how do I convert HBITMAP to DIB? – Ofek .T. Jun 08 '14 at 16:10
  • This is [example](http://stackoverflow.com/questions/2659932/how-to-read-the-screen-pixels) for getting the screen bitmap into DIB. Possibly chk this out. – RC Brand Jun 08 '14 at 16:39

0 Answers0