Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

error C2628: DWORD in WTYPES.H

183 views
Skip to first unread message

Zhihai Liu

unread,
Jul 31, 2001, 7:01:20 PM7/31/01
to
Hi,

I had problem compiling a project in VC6 (SP5). Below is part of the error
message.

...
d:\program files\microsoft visual studio\vc98\include\wtypes.h(375) : error
C2628: 'DWORD' followed by 'unsigned' is illegal (did you forget a ';'?)
...

And this is the line in WTYPES.H
...
typedef DWORD ULONG;
...

I don't expect an error in a header file coming with the installation. Any
idea? Your help is appreciated.

Thanks,
Zhihai

Mick O'Neill

unread,
Jul 31, 2001, 7:35:59 PM7/31/01
to
Zhihai,

Sounds to me like ULONG has alredy been typedef'ed (or more likely
#define'd) elsewhere, making that statement translate to

typedef DWORD unsigned long.

Check in the header files loaded before this one in the module.

Mick


"Zhihai Liu" <zhi...@dyncorp-bksd.com> wrote in message
news:OYeRfQhGBHA.160@tkmsftngp07...

Zhihai Liu

unread,
Aug 1, 2001, 1:44:28 PM8/1/01
to
Mick,

EXACTLY. Thanks a lot.

Zhihai

"Mick O'Neill" <m...@ozwebip.com.au> wrote in message
news:99662061...@sunshine.big.net.au...

0 new messages