Ahh...I wasn't aware that you had to include windows.h
here is what my script looks like now. I'm building w/ a dos window. If there is
an easy way to move this to windows programming, I'd like to know how.
Thanks.
Aaron
#include <iostream.h>
#include <stdlib.h> //used for clrscr function
#include <ctype.h> //used for 'toupper'
//#include <dos.h> //used for 'sleep' function(BC5)
#include <winbase.h>
..cut...
case 5:
All(First, Second, Choice);
return 0;
break;
default: //used if illegal key is hit
Sleep (500); //pauses for 5 seconds <---this is where I'm trying to
use it.
cout<<"Keyboard error. Re-enter: \n";
system("cls");
break;
Thank.
Aaron
Quote:
> >I think I have a bad <winbase.h> file. When compiling, I get 102 errors
> >when I include this file. All the errors are based in this file as well.
> Are you sure the errors are actually in the winbase.h file, and not
> "leftover" errors (like a missing ; or } ) from the header file
> immediately preceeding it? Or perhaps you haven't included "windows.h"?
> For example, do you get the same errors if you create an empty win32
> console program and use this code:
> // cut here -----
> // Note that windows.h is also included. This brings in some #defines
> // necessary for winbase.h to build.
> #include <windows.h>
> #include <winbase.h>
> int main(void)
> {
> return 0;
> }
> // cut here -----
> Katy
> --
> Katy Mulvey Please post support questions - I won't answer emailed ones.
> Software Development Engineer ORMEC Systems http://www.ormec.com
> MVP/VC++ What's an MVP? See
> <http://www.microsoft.com/supportnet/SupportPartners/MVPs/brochuregene...>
--
Aaron Myers
It's here...Classic Car Photography!
Come visit us at:
http://www.ifx.net/~shadow