Bad winbase.h file 
Author Message
 Bad winbase.h file

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.

My proggy works ok w/o this header however. Could someone let me have a
copy of this file, maybe mine is corrupt. I'm using VC5. I'm trying to
use the sleep command in VC5. Could someone post how to do this. Maybe
i'm doing it wrong too.
Thanks.
Aaron

--
Aaron Myers
It's here...Classic Car Photography!
Come visit us at:
http://www.*-*-*.com/ ~shadow



Thu, 17 May 2001 03:00:00 GMT  
 Bad winbase.h file

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;

Quote:
}

// 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...>



Thu, 17 May 2001 03:00:00 GMT  
 Bad winbase.h file
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


Fri, 18 May 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Question about "winbase.h" header file

2. Bad Include (was bad library)

3. #include <winbase.h> gives me syntax errors in winbase.h

4. Bad Header File?

5. Bad Code From A Help File

6. Bad file descriptor

7. bad file i/o

8. syslog() returns "bad file number"

9. Bad file number

10. bad file magic number?

11. BAD FILE NUMBER

12. Bad file handle

 

 
Powered by phpBB® Forum Software