c++ - Doing multiple tasks at once? (combining a GUI related function to carryout some process) -
i'm sorry if title sounds "off", elaborate further, problem - i've written simple winsock server
passes information (text messages) between connected clients (this console application). program i've tried combining i've learned win32api client
program. getting little ahead of self went ahead , wrote basic ui don't know how combine two?. understand ( :| ) console application running top-bottom sequentially while ui continuously drawing window on screen , waiting happen. point, how combine these too??. i'm quite put off this.
a gui works through event-driven message-loop. message-loop dispatches incoming events function-calls. if press button, function called, can call instance network send
-function. if need send (or receive) large amounts of data, should create separate thread , message-loop network stuff, gui stays responsive.
Comments
Post a Comment