Jump to content
  • Advertisement
Sign in to follow this  
sfx81

Sleep() not working

This topic is 3517 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I have started visual studio 2005 (in vista), and want to make a simple console app. I tried to use Sleep(1000) in it, but it says error C3861: 'Sleep': identifier not found. Then looking at msdn it is defined in "winbase.h". And including winbase spits out more than 73 errors. So question is how can I include winbase.h in my console application so that I can use Sleep() function. Any help will be appreciated. Regards Kazz #include "stdafx.h" #include "conio.h" //#include "winbase.h"//ERROR int _tmain(int argc, _TCHAR* argv[]) { _getche(); Sleep(1000);//ERROR return 0; }

Share this post


Link to post
Share on other sites
Advertisement
From the MSDN documentation:
Quote:

Minimum supported client Windows 2000 Professional
Minimum supported server Windows 2000 Server
Header Winbase.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!