阅读:921回复:0
包含setupapi_h后出现的错误
我将setupapi.h 包含进工程后,编译,发现以下错误。
1>c:\winddk\2600.1106\inc\crt\prsht.h(98) : error C2143: syntax error : missing ')' before '*' 1>c:\winddk\2600.1106\inc\crt\prsht.h(98) : error C2143: syntax error : missing '{' before '*' 1>c:\winddk\2600.1106\inc\crt\prsht.h(98) : error C2059: syntax error : ')' 1>c:\winddk\2600.1106\inc\crt\prsht.h(98) : error C2146: syntax error : missing ')' before identifier 'hwnd' 1>c:\winddk\2600.1106\inc\crt\prsht.h(98) : error C2144: syntax error : '<Unknow n>' should be preceded by '<Unknown>' 1>c:\winddk\2600.1106\inc\crt\prsht.h(98) : error C2144: syntax error : '<Unknow n>' should be preceded by '<Unknown>' 1>c:\winddk\2600.1106\inc\crt\prsht.h(98) : error C2143: syntax error : missing ')' before 'identifier' 1>c:\winddk\2600.1106\inc\crt\prsht.h(98) : error C2061: syntax error : identifi er 'hwnd' 1>c:\winddk\2600.1106\inc\crt\prsht.h(98) : error C2059: syntax error : ';' 1>c:\winddk\2600.1106\inc\crt\prsht.h(98) : error C2059: syntax error : ',' ...... 还有很多类似的,不知道是怎么回事,请高手指点。 没有任务调用代码,仅仅只是在开头 #include <ntddk.h> #include <setupapi.h> 环境XP操作系统SP2, XPDDK 2006.1106. 2000DDK下也试了,错误相同。 请高手指点,谢谢。 |
|
|