How to fix header file error?

So my question is how to fix the error in the header file in order to run the program normally? For example, I use C ++ builder 2010 and when the winuser.h file is included, the program always gets an error similar to this

Checking project dependencies ... Compiling Project7.cbproj (debugging configuration) [Error BCC32] winuser.h (47): E2257, expected Full analyzer context File6.cpp (4): #include c: \ program files (x86) \ embarcadero \ rad studio \ 7.0 \ include \ winuser.h [BCC32 Error] winuser.h (48): E2257, expected Full analyzer context

I am trying to replace this file with the original default, but it still has the same error, how to fix it?

+3
source share
2 answers

The message is hard to read, but the actual error is "E2257, expected" (expected coma)

From the documentation of the RAD studio:

A comma was expected in a list of declarations, initializations, or parameters.

This problem is often caused by a missing syntax element earlier in the file 
or one of its included headers.

The error message gives you the line in which this happened, and you should probably look before this. There are probably some '}', ')' or ';' or other syntax code missing from your code before the error (probably before including the header file in your code). A full error message (you truncated it) or the actual code will facilitate the determination.

It is also possible, even if it is unlikely that the error is in one of the headers included in winuser.h.

+2
source

, 4 File6.cpp. , , , - , .

, winuser.h , - , winuser.h .

, - winuser.h - , winuser.h. API Win32 windows.h, , h, .

+4

Source: https://habr.com/ru/post/1780100/


All Articles