| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | TimeSlices ?? |
PF> Same as windows (ax=1680h, int 2Fh).
PF> My question to you is: why are you in a loop waiting
PF> for something to happen? If you were to call one of
PF> the functions that does not return until a key is
PF> pressed, you wouldn't have this problem.
Remember, this is a dos program, and to the best of my knoledge Borland
does not simply put a process to sleep and wait for a keyboard interrupt
(as there is only supposed to be one process). Any way you look at it
(unless you explain otherwise, I'm open minded) there is a loop.
here is basically what I was doing...(I allways welcome better code.)
while( Interested )
{ if( kbhit() ) {
TakeApropriateAction()
}else if ( the_window.SizeHit() ) {
TakeDifferentAction()
}
ReleaseTimeSlice(); //added this [ thanks Mike Bilow ]...
}
Only way I could think of to call a function that doesn't return until a
keystroke, or mouse message (under dos) would still have a loop.
BTW, why did you choose WATCOM C++ ? is it in you opinion supperior to
borland? If so, why? I just bought Borland's C++ for Os/2, but I'm not on a
budget so...
Paul Rider.
--- Maximus/2 2.02
* Origin: Rodent! Bbs ( Os/2 ) (1:163/427)SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 163/427 335 307 99 12/12 3615/50 396/1 270/101 105/103 42 712/515 @PATH: 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.