title: How to send a HBITMAP over a socket using WIN32 and C++?
body: <p>I have created an application where I am required to send the cropped part of an image over a Socket. I have cropped the image using StretchBlt(), I am also able to display and save the cropped image to a bitmap file.</p>
  
  <p>Next, I want to send this cropepd image over a Socket connection. The connection between socket is established, My problem is how to send/ receive this image over Socket since send() and recv() functions require a char *.</p>
  
  <p>One idea, is if I select the HBITMAP to a memDC object than can I send the memDC directly to the remote socket ?</p>
  
  <p>Any easier way to achieve this task?</p>