DOS delay() bug in WinXP

shmoove
09-13-2002, 12:32 PM
Hi,
I am writing a little console game using Borland's Turbo C compiler.
I use to the dos.h delay() function. It works fine when I run the program in Windows 98, but when I run it in WinXP the program runs considerably slower. I assume this is because WinXP doesn't really have DOS but some sort of DOS emulator to run the program.
Is there a good alternative to the delay() function that will perform the same in WinXP as in Windows 98?

reboot
09-13-2002, 12:34 PM
try Sleep

Oh... sorry, scratch that. You said turbo c. It doesn't do Windows programs.

shmoove
09-15-2002, 04:19 AM
Are you saying that I can't solve this with Turbo C. The program is after all a DOS program.
Was I correct about the DOS emulator in WinXP thing. This is after all just for pedagogical value and not comercial (me being unemployed and all).

Well, thanks anyways.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum