Winnt.h

This is a discussion on Winnt.h within the C++ Programming forums, part of the General Programming Boards category; My WINNT.H header file is corrupt. When I try to load the Windows.h header it gives me this error. Code: ...

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    3

    Winnt.h

    My WINNT.H header file is corrupt. When I try to load the Windows.h header it gives me this error.

    Code:
    c:\program files\microsoft visual studio\vc98\include\winnt.h(1092) : error C2146: syntax error : missing ';' before identifier 'KSPIN_LOCK'
    c:\program files\microsoft visual studio\vc98\include\winnt.h(1092) : fatal error C1004: unexpected end of file found
    I am using Visual C++ 6.0 with sp5, I am running windows XP home. If someone could upload a working Winnt.h header file that I could download I would appreciate it.

    Thanks

  2. #2
    Registered User
    Join Date
    Nov 2004
    Posts
    1

    winnt.h

    I ran into the same problem using Visual Studio 6.0. Seems like while trying to bypass some of the VS6 generated code (basetsd.h) I did something that corrupted the whole compiler. What I had to do was uninstall VS6 and reinstall it. Main point is that it is not a problem with your code (took me almost a week to figure that part out) or the winnt.h file.

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Wow thats crazy. I have a found a few things that have messed up the compiler for me in the past. Sometimes a bsod during a debug will mess things up royally. One time I had a problem come up during a link (not quite sure what happened in that case). Only once have I ever had to reinstall because of such a thing. But thats weird that a compile would make things go so horribly wrong.

  4. #4
    #include<xErath.h> xErath's Avatar
    Join Date
    Jun 2004
    Posts
    722
    This also happened to me. Try including /decluding some headers and see what you got. Probably those are conflicts with redefinition of symbols.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21