madhu.ab@gmail.com wrote:
Quote:
Hi All,
>
I am getting the following errors when i am including header file
winuser.h
I dont know whats happening. How will an error occur in winuser.h??
Please help.
>
>
\microsoft visual studio\vc98\include\winuser.h(39) : error C2061:
syntax error : identifier 'HDWP'
winuser.h is not a C standard header. I would assume from the name that
it is windows-specific. As such, this is a question that would get
better answers if you posted it to a windows-specific newsgroup.
Being without access to that header file, I can only guess at the
problem. That error message suggests that HDWP is supposed to be defined
somewhere, and hasn't been. It's commonplace for such definitions to be
controlled by #if, #ifdef, or #ifndef statements. I'd recommend trying
to find out where HDWP is supposed to be defined, and then check to see
whether all of the conditions for it being defined have been met.
If HDWP is supposed to be defined in a different header file, then
winuser.h should have #included that other file. However, it's not
uncommon for lazy programmers to assume that the other header file has
already been #included. If the writer of winuser was lazy that way, then
your problem might be that the other header file hasn't been #included
in your code.
By any chance are you using a different compiler to compile your code?
winuser.h might be compatible only with Visual Studio.