阅读:2133回复:5
d:\\ntddk\\inc\\ddk\\ntddk.h(370) : error C2061: syntax error : identifier \'PULONG_PTR\'
d:\\ntddk\\inc\\ddk\\ntddk.h(370) : error C2061: syntax error : identifier \'PULONG_PTR\'
程序编译出现这样的错误提示,什么原因哪? 大家快来帮帮我! |
|
沙发#
发布于:2004-04-14 17:36
Compiler Error C2061
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] syntax error : identifier \'identifier\' The compiler found identifier where it wasn’t expected. Possible cause Initializer enclosed by parentheses. To avoid this problem, enclose the declarator in parentheses or make it a typedef. Example class X {}; class Y {}; class Z {}; class W : public X, public Y, public Z {}; void func ( W* pW ) { X* pX ( pW ); // Error: unexpected identifier \'pW\' Y ( *pY ) ( pW ); // OK, declarator in parentheses typedef Z *pZ_t; pZ_t pZ ( pW ); // OK, typedef used for Z } |
|
板凳#
发布于:2004-04-14 19:43
其实就是个ULONG的指针而已,X86-32下就DWORD即可
|
|
|
地板#
发布于:2004-04-14 20:20
如果是DDK的h文件出错了,肯定是环境变量没有设置好,比如一些macro没有define,路径没有设置等等
|
|
地下室#
发布于:2004-04-15 08:44
我也觉得是环境设置的问题,可是不知道怎么改,大家帮忙呀!
|
|
5楼#
发布于:2004-04-15 13:27
简单的方法就是用DDK的Build Environment
|
|