Posted: Wed Aug 29, 2007 3:30 pm Post subject: [Problem] C++ compiling error; Read please ..
I'm trying to define this (In C++) :
#define _WIN32_WINNT 0×0500
When I'm compiling it tells me this error :
"1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(813) : fatal error C1012: unmatched parenthesis : missing ')'"
When I'm double clicking on the error, it point me on this line :
Code:
#endif // !_OBJECTID_DEFINED
#define MINCHAR 0x80
#define MAXCHAR 0x7f
#define MINSHORT 0x8000
#define MAXSHORT 0x7fff
#define MINLONG 0x80000000
#define MAXLONG 0x7fffffff
#define MAXBYTE 0xff
#define MAXWORD 0xffff
#define MAXDWORD 0xffffffff
//
// Calculate the byte offset of a field in a structure of type type.
//
#if(_WIN32_WINNT >= 0x0500) // IT POINTS ME ON THIS LINE .
//
// Calculate the size of a field in a structure of type type, without
// knowing or stating the type of the field.
//
#define RTL_FIELD_SIZE(type, field) (sizeof(((type *)0)->field))
//
// Calculate the size of a structure of type type up through and
// including a field.
//
#define RTL_SIZEOF_THROUGH_FIELD(type, field) \
(FIELD_OFFSET(type, field) + RTL_FIELD_SIZE(type, field))
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum