Re: dos wait loop
- Posted by Tone Škoda <tskoda at email.si> Mar 29, 2005
- 504 views
i mean it has to be possible. how does wait_key() do it? i want for dos (console) program to wait for a message from windows program. it would work perfectly if i could simulate keypress, then i could use getc(0) which would do all three things: 1) wait for a "message" 2) it wouldn slow the operating system down 3) it would pause its program execution. Tone Škoda wrote: > > how can i in dos program make it so that following loop won't slow the system > down: > > while 1 do > -- on every half a second check something > end while > > in windows i can use timer to achieve this functionality, is there something > similar > in dos? > > > btw, does anyone know of a library for communication between dos and windows > program? > or how it > > can be done, besides via a file? >