C:\Program Files\Microsoft SDK\include\winnt.h(477) : error C2467: illegal
declaration of anonymous 'struct'
This is line of the code:
typedef union _LARGE_INTEGER {
struct {
DWORD LowPart;
LONG HighPart;
};
struct {
DWORD LowPart;
LONG HighPart;
} u;
#endif //MIDL_PASS
LONGLONG QuadPart;
} LARGE_INTEGER;
I belive there is some switch to disable this error?
Anonymous structs are a Microsoft extension which you probably have disabled
using /Za. If memory serves, you set this in the IDE under
Project Settings -> C/C++ ->Custom (in the list box)
It is somewhere around there anyway. There is a checkbox that you need to
either check or uncheck.
--
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)