(Nov 1, 2019 02:49 AM)gua Wrote: first what sockets do u use, indy , winsock ...etc .. TCP or UDP ? Do you want to send image from client or server socket ? give us more info
It is similar for any of them but it would be nice if u provide that info..
Usually logic is simple as this ( assuming that you know how to establish connection, take screenshot etc ):
bitmap->assign(ScreenCapture.. bla bla bla)
bitmap->savetostream(bitmapstream)
if u use indy for example u will do something like
aconntext->connection->socket->write(bitmapstream->size)
aconntext->connection->socket->write(bitmapstream)
The questions you're asking do not matter at all whatsoever, and are a waste of time to answer; the process is the exact same, send x bytes from a buffer. If you're just going to spoonfeed him with his exact implementation that's your own prerogative, but I would advise against it. His misconception is asking how to send the handle.
@OP: Why would you send a bitmap handle over a socket connection? The handle is just a number that is completely useless to the far end, and it definitely isn't going to provide any bitmap data alone. You need to send the bytes of the actual bitmap itself... If you don't understand what handles are I can't see much success with creating remote desktop software.