Hi all
I'm developing an employee monitoring software in C++. It uses TCP connections for client-server interaction. I've define some commands for remote controlling like SHUTDOWN, PRINTSCR, MESSAGE GETINFO etc. Everything works fine except the remote screen previews. In thName:  1.png
Views: 945
Size:  61.8 KBName:  2.jpg
Views: 882
Size:  15.5 KBName:  3.jpg
Views: 891
Size:  13.6 KBName:  4.png
Views: 808
Size:  87.7 KBe server app. it should be possible to view multiple remote screens at a time. The server sends periodic requests to clients to send its screenshots back. The request includes the required picture size also so that the server need not resize the full size image, and also it reduce network overheads.

The client application captures, resizes, convert to png format and sends it over tcp connection to server. The server converts it back to BMP and assigns to the bitmap control in a dialog.

This works fine in localhost. But in vmware the preview becomes corrupted. The bitmap loads fine in the picture control. But the image is corrupted. Anyone please suggest me a solution. Is tcp connection reliable?

I've attatched 4 files, the screenshots of server application.