Re: Hacking a Win32 UI without knowing jack
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.games.mud.client.lyntin |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 22 Apr 2004 [email protected] wrote: > > Ok, since I just said I know why stdout isn't working I guess I know why > nothing will show after runui is going... > > WriteUI will not happen since my dll is and always will be in the > mainloop... So I will need to write something like... > > demodll.outputbuffer.append(line) > > Then process that buffer in the idle event of my application. > > Does this sound about right to anyone following this? > > This tells me output is of secondary importance, but I suppose it has to > be for the proxy-like mechanics of the client. > > Basically, is this outputbuffer mechanism the best I can do for > efficiency here? That's how the tkui works: the mainloop has a timeout callout that looks at the tkui's queue and handles all the events that have shown up since the last callout. But it depends on whether the ui toolkit you're using is re-entrant. If it is re-entrant, then when the to_user_hook is spammed and your ui's write method is called, you could put the output to the screen immediately without having the output wait in a queue. /will ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click