2011年5月6日 星期五

C sleep


Sleep() 確定在 windows.h 裡

_sleep() 在 stdlib.h


VC 2008 Compiler
warning C4996: '_sleep': This function or variable has been superceded by newer library or operating system functionality.
Consider using Sleep instead. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\stdlib.h(838) : 請參閱 '_sleep' 的宣告

/* The Win32 API SetErrorMode, Beep and Sleep should be used instead. */
_CRT_OBSOLETE(SetErrorMode) _CRTIMP void __cdecl _seterrormode(_In_ int _Mode);
_CRT_OBSOLETE(Beep) _CRTIMP void __cdecl _beep(_In_ unsigned _Frequency, _In_ unsigned _Duration);
_CRT_OBSOLETE(Sleep) _CRTIMP void __cdecl _sleep(_In_ unsigned long _Duration);

沒有留言:

張貼留言