Click here to Skip to main content
15,887,472 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Hi,

While compiling a C++ dll project in VS 2008 i am getting the following error

error C2061: syntax error : identifier 'LPINPUT'


This error originates from winuser.h


What would be the reason ?
Posted

This is not nice of you to ask such questions not showing the lines of code relevant to the error. Not at all!

OK, look at this MSDN page: http://msdn.microsoft.com/en-us/library/ms646310(v=vs.85).aspx[^].

Pay attention at this note:

proper include

You have to include WinAble.h not WinUser.h


See also http://msdn.microsoft.com/en-us/library/ms646270(v=vs.85).aspx[^].

Do you mean this declaration? I cannot be 100% sure as you did not show nothing from you code.

—SA
 
Share this answer
 
Comments
CPallini 13-May-11 3:37am    
WinAble.h? Why not WinDeveloperWannaBe.h?
:-D
5.
Sergey Alexandrovich Kryukov 13-May-11 6:55am    
:-)
A 5? Pardon me, where?..
Thank you.
--SA
CPallini 13-May-11 7:53am    
There.
You should be more trusting, man...
:-)
I included Windows.h in the stdafx, and problem got ressolved.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900