| | |
missing ';' before identifier 'KSPIN_LOCK'
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Dec 2005
Posts: 43
Reputation:
Solved Threads: 0
I'm really new to C++, but not to programming, and don't really know what I'm doing. I had a bunch of programs working OK. Then I was messing with a window application and all my window programs would no longer compile.
I get the following error (same for all projects)
c:\program files\microsoft visual studio\vc98\include\winnt.h(1094) : error C2146: syntax error : missing ';' before identifier 'KSPIN_LOCK'
c:\program files\microsoft visual studio\vc98\include\winnt.h(1094) : fatal error C1004: unexpected end of file found
I may (I don't know
) have messed with the API settings. There's lot's of references to this on 'google search' but I could find nothing that addressed this specific problem. Any help would be greatly appreciated.
I get the following error (same for all projects)
c:\program files\microsoft visual studio\vc98\include\winnt.h(1094) : error C2146: syntax error : missing ';' before identifier 'KSPIN_LOCK'
c:\program files\microsoft visual studio\vc98\include\winnt.h(1094) : fatal error C1004: unexpected end of file found
I may (I don't know
) have messed with the API settings. There's lot's of references to this on 'google search' but I could find nothing that addressed this specific problem. Any help would be greatly appreciated. •
•
Join Date: Dec 2005
Posts: 43
Reputation:
Solved Threads: 0
Thanks for the response...
The compiler does a pretty good job of catching syntax errors and I've checked for anything obvious.
I'm using Micro$ Visual C++ 6.0 and I'm getting the same error on untouched 'wizard' applications. I 'think' I know what the problem is, but I need a file from work to confirm. I'll report back and let you know what transpired.
Talking of VC 6.0, does anyone know if you can turn-on line numbering in the editor. Micro$ frequently hides little things like that.
The compiler does a pretty good job of catching syntax errors and I've checked for anything obvious.
I'm using Micro$ Visual C++ 6.0 and I'm getting the same error on untouched 'wizard' applications. I 'think' I know what the problem is, but I need a file from work to confirm. I'll report back and let you know what transpired.
Talking of VC 6.0, does anyone know if you can turn-on line numbering in the editor. Micro$ frequently hides little things like that.
•
•
Join Date: Dec 2005
Posts: 43
Reputation:
Solved Threads: 0
OK! This was my problem.
As stated at the beginning of this thread, I don't know what I'm doing, YET.
I downloaded a project from the web which pulled up a dependancy file, Basetsd.h, and I did not know why it was there. (didn't appear with the MS projects !!). So deleted it.
NOT a good idea :rolleyes:
Down to the office, get a copy of the file, install it, and all's well.
The moral: Don't mess with things you don't understand...
As stated at the beginning of this thread, I don't know what I'm doing, YET.

I downloaded a project from the web which pulled up a dependancy file, Basetsd.h, and I did not know why it was there. (didn't appear with the MS projects !!). So deleted it.
NOT a good idea :rolleyes:
Down to the office, get a copy of the file, install it, and all's well.
The moral: Don't mess with things you don't understand...
![]() |
Similar Threads
- Http request error when using AJAX. (JavaScript / DHTML / AJAX)
- missing storage-class or type specifiers error (C++)
- SYSTEM.INI missing on WIN 98 SE (Windows 95 / 98 / Me)
- system registry missing, Missing system.ini (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion count database delete deploy desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph homeworkhelp homeworkhelper iamthwee ifstream input int integer lib linkedlist linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





