谁为荼苦?其甘如荠
VS error C2059
上一篇 /
下一篇 2009-11-18 12:30:14
/ 个人分类:windows开发
创建了一个VS的默认项目:
new-win32 project-windows application
点击build solution。出现报错:
error C2059: syntax error :'__declspec(dllimport)' winuser.h
点击指示错误代码段为:
WINUSERAPI
#ifndef __MAC
LRESULT
WINAPI(报错位置)
#else
LRESULT
CALLBACK
#endif
该winuser.h位于C:\Program Files\Microsoft SDKs\Windows\v6.1\Include
查询了网上众多答案未果。实在没办法,把开发同志的winuser.h拷来,rebuild solution。运行成功!
用文本比较工具查看,开发的winuser.h中,没有这一段代码。奇怪~~很不明白
相关阅读:
- export exceptions (intothestorm, 2008-11-12)
- Syntax error on tokens, delete these tokens (intothestorm, 2008-11-12)
- 网页信息 (wangLoveR, 2008-11-17)
- LoadRunner错误 (holon, 2008-12-01)
- LR回放中highest severity level was"ERROR"的解决方法 (jean_xhq, 2009-2-09)
- Unspecified error请帮忙~ (xlluo, 2009-4-13)
- 使用LR9.5路录制脚本时,总是先弹出错误的窗口 (Lola1123, 2009-5-22)
- Testlink1.8.2的一个恶心BUG (omg, 2009-8-14)
- 导入mantis数据ERROR 2006 (HY000)解决办法 (carol2000, 2009-8-20)
- 中国移动的CRM(java+siebel)也报错!丢人! (timesheet, 2009-8-31)
收藏
举报
TAG:
error
C2059:
syntax