我在源程序中#define _WIN32_WINNT >= 0x0500 后
出现错误:
c:\program files\microsoft visual studio\vc98\include\winbase.h(101) : fatal error C1017: invalid integer constant expression
Error executing cl.exe.
怎么解决?谢谢。
winbase.h出错地方是这里
#if (_WIN32_WINNT >= 0x0500)
#if defined(_M_ALPHA)
#define MoveMemoryVlm RtlMoveMemory
#define CopyMemoryVlm RtlCopyMemory
#define FillMemoryVlm RtlFillMemory
#define ZeroMemoryVlm RtlZeroMemory
#endif
#endif
谢谢!
出现错误:
c:\program files\microsoft visual studio\vc98\include\winbase.h(101) : fatal error C1017: invalid integer constant expression
Error executing cl.exe.
怎么解决?谢谢。
winbase.h出错地方是这里
#if (_WIN32_WINNT >= 0x0500)
#if defined(_M_ALPHA)
#define MoveMemoryVlm RtlMoveMemory
#define CopyMemoryVlm RtlCopyMemory
#define FillMemoryVlm RtlFillMemory
#define ZeroMemoryVlm RtlZeroMemory
#endif
#endif
谢谢!
解决方案 »
- 在线等!!!用FillPath填充bezier围成的曲线,结果很奇怪!!!!急!!
- 请问:在vc下如何进行基于ipx的socket编程?谢谢
- 散分!祝全体VC/MFC技术坛友,各路水友...国庆,中秋节快乐!
- [下载]三国志十下载
- 求助。关于VC和matlab混合编程。
- 急啊,需要编写一个能阅读PDF格式的阅读器
- RegisterClassEx 和RegisterClass有什么区别呀???
- 那位好心人能当面教我做个图形软件呀。我已经一夜没有睡了
- 怎样在vc中的static text或edit box中显示矩阵?
- 语法分析的程序,有点问题,谁帮帮我号不
- 请教:用CRecordSet中的DELETE时,出现conflict with column reference 错误
- 一个关于内存管理的简单问题。
_WIN32_WINNT 是个宏,你可以把它定义为一个值,但不能用>=号吧?
如你可以写成#define _WIN32_WINNT 0x0500
出现很多错误:
c:\program files\microsoft sdk\include\iphlpapi.h(183) : error C2065: 'PMIB_ICMP_EX' : undeclared identifier
c:\program files\microsoft sdk\include\iphlpapi.h(183) : error C2146: syntax error : missing ')' before identifier 'pStats'
c:\program files\microsoft sdk\include\iphlpapi.h(183) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft sdk\include\iphlpapi.h(185) : error C2059: syntax error : ')'
....
....
你看看iphlpapi.h那里有什么问题呀
我用了sd
并确认你是在WIN2000/XP上用VC6。
c:\program files\microsoft sdk\include\iphlpapi.h(183) : error C2065: 'PMIB_ICMP_EX' : undeclared identifier
c:\program files\microsoft sdk\include\iphlpapi.h(183) : error C2146: syntax error : missing ')' before identifier 'pStats'
c:\program files\microsoft sdk\include\iphlpapi.h(183) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft sdk\include\iphlpapi.h(185) : error C2059: syntax error : ')'
....
....
放在所有#include指令的最前面。