Re: TextOut prints a little late?



Presumably it's the GDI batching?

Try with GdiSetBatchLimit(1)
or try: GdiFlush() immediatly after your first TextOut() call.

The batching should make drawing faster overall, so, you'd only want to do
this for special occations. On my XP, it seems that 20 is the default
batching limit and it cannot be raised above this amount. Not sure if
that's specific to my graphics card/hardware, or an XP fixed limit.


"deostroll" <deostroll@xxxxxxxxx> wrote in message
news:1190772470.352419.149250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Inside a function I have a Sleep() in between 2 TextOut() calls. When
I call the 1st one I expect it to print immediately before Sleep() is
executed; but instead I get the output of both calls at the same time
after the Slee() and after the funtion has exited...!

Why does this happen?

What is the proper way to print immediately?

--deostroll



.


Loading