🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Newbie Sleep() question

Started by
1 comment, last by Peon 22 years, 7 months ago
I feel so stupid, but I cant get Sleep() to work at all. I made sure to include (that''s the header, right?) and then I make a call to Sleep: Sleep(1000); I go to compile, however, and it says something to the effect of (Undefined Identifier -- Sleep()) Any ideas? Another thing I was wondering is if it''s possible to use Sleep() to slow down a function, such as in a for loop. Because I couldnt get Sleep() to work, I made my own less efficient version (for loop with a really big number) but it didn''t work. In fact, the output was very strange but that''s another story. Anyway, if anyone could offer advice, epecially on why Sleep() won''t work for me, I''d really appreciate it
Peon
Advertisement
You must include winbase.h or (preferably) windows.h to use "Sleep".

[Resist Windows XP''s Invasive Production Activation Technology!]
Aww... I knew it would be somethign stupid Thanks Null!
Peon

This topic is closed to new replies.

Advertisement