错误C2061:语法错误:标识符'LPINPUT' [英] error C2061: syntax error : identifier 'LPINPUT'
本文介绍了错误C2061:语法错误:标识符'LPINPUT'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在VS 2008中编译C ++ dll项目时,出现以下错误
Hi,
While compiling a C++ dll project in VS 2008 i am getting the following error
error C2061: syntax error : identifier ''LPINPUT''
此错误源自winuser.h
原因是什么?
This error originates from winuser.h
What would be the reason ?
推荐答案
这对您来说不好,因为这样的问题并没有显示与错误相关的代码行.完全没有!
好,请看下面的MSDN页面: http://msdn.microsoft.com /en-us/library/ms646310(v=vs.85).aspx [
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
另请参见 http://msdn.microsoft.com/en-us/library /ms646270(v=vs.85).aspx [ ^ ].
你是说这个宣言吗? 我不能100%确定您的代码,因为您没有显示任何内容.
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.
我在stdafx中包含了Windows.h,问题得以解决.
I included Windows.h in the stdafx, and problem got ressolved.
这篇关于错误C2061:语法错误:标识符'LPINPUT'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文