wait/sleep func for win32 console apps?
-
Sprudling wrote: Does one exist without #including and using Sleep()? Are you asking for a portable solution or what is your problem with using just Sleep() :confused: -- Daniel Lohmann http://www.losoft.de
-
Sprudling wrote: Does one exist without #including and using Sleep()? Are you asking for a portable solution or what is your problem with using just Sleep() :confused: -- Daniel Lohmann http://www.losoft.de
-
I take it there is no such function, and there is no problem really except compiling takes 10 times longer when not using precompiled headers. Sprudling
Oh the compiling time - I see. You could decrease it a lot by defining some symbols to exclude rarly used stuff from the windows headers: #define WIN32_LEAN_AND_MEAN in front of your #include statement should help a lot. But of course, you could also take the one-line definition of Sleep out of the header and define it on your own, so you just don't need the header: extern "C" void Sleep( unsigned int msec ); should do it (don't forget to link against kernel32.lib) :-) -- Daniel Lohmann http://www.losoft.de