Click here to Skip to main content
15,899,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
How to draw a GUI window which is already running on a server on my client program.
Any suggestions on how to implement this feature.

Regards,
Posted

1 solution

1. Create bitmap of server's window (on server)
2. Send bitmap to client
...
...
1. Receive sent bitmap
2. Draw image to client area(windows client-area) of client program.
 
Share this answer
 
Comments
[no name] 19-Sep-11 12:49pm    
but if the server is linux and host is windows. does the same concept can be applied ?
enhzflep 19-Sep-11 12:59pm    
Last time I checked, Linux was perfectly capable of displaying(and creating) bitmaps. :p

To say that I dislike the X11 windowing system would be a pleasant understatement - I wouldn't have a clue on how to go about doing screen capture in Linux.

But still, the method would be the same regardless of any platform-specific implementation details. I'd suggest a quick google for 'GPL linux screen-capture software' - that would probably seem more humane to me than trying to decipher the X11 docs.
[no name] 19-Sep-11 13:33pm    
i am worried that the server is not linux or unix. if it is mainframes then i guess i need to write explicit server program to capture the screen and the i need to send it to client program each time. But in this scenario i need to explicitly write screen capture software using ansi C. Am i right ?
enhzflep 19-Sep-11 13:48pm    
Might I enquire as to what OS you suspect it may be running?

Anyhow, this strikes right at the crux of the whole Portability issue. I could go out and buy a video-game(the same one) for PC, XBOX, PS3, Wii etc, etc. The game is the same regardless of platform, though there will be platform specific code to perform input and output.

If you can modularize the code such that you can create a functioning client/server pair running under a familiar system (e.g windows), it's simply a matter of re-implementing the parts that are specific to the system that the server is running.

In any case, you WILL have to find out what OS the server is running.

As to whether or not to use ANSI C or not, I'm not smart enough to know if that's any more relevant than the price of fish in China at the moment. (my impression is that it's not)
[no name] 19-Sep-11 13:54pm    
hp nonstop tandem is the operating system

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900