Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Problem] C++ compiling error; Read please ..

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
*CandyShop*
Grandmaster Cheater
Reputation: 0

Joined: 03 Apr 2007
Posts: 865
Location: Israel

PostPosted: Wed Aug 29, 2007 3:30 pm    Post subject: [Problem] C++ compiling error; Read please .. Reply with quote

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.
//

#define FIELD_OFFSET(type, field)    ((LONG)(LONG_PTR)&(((type *)0)->field))




#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))

Any ideas on how to fix it ?

Thanks Very Happy
Back to top
View user's profile Send private message
zart
Master Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 351
Location: russia

PostPosted: Wed Aug 29, 2007 3:35 pm    Post subject: Reply with quote

Did you put it above all your includes?

I believe this fixed it last time when I came around that error... << source >>

_________________
0x7A 0x61 0x72 0x74

TEAM RESURRECTiON
Back to top
View user's profile Send private message
*CandyShop*
Grandmaster Cheater
Reputation: 0

Joined: 03 Apr 2007
Posts: 865
Location: Israel

PostPosted: Wed Aug 29, 2007 6:05 pm    Post subject: Reply with quote

zart wrote:
Did you put it above all your includes?

I believe this fixed it last time when I came around that error... << source >>

o... Let me check, thanks anyway Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites