Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Error C2040: ...

Author
Message
JTK
14
Years of Service
User Offline
Joined: 10th Feb 2010
Location:
Posted: 15th Feb 2010 04:33
I have a macro:



Until my latest update (VS2008-Pro), this worked just fine... After the update, I get the following message for INT, UINT, LONG, ULONG and DWORD.

Quote: "
jtk_common.h(446) : error C2040: 'INT_PTR' : 'INT *' differs in levels of indirection from '__w64 int'
"


Does anyone know how to alleviate this error or do I *have* to re-typedef the standard MS types to my own...?

I've already tried:


without errors, but would really rather *not* re-declare all of the *basic* types if I don't have to...

Any help wold be appreciated...

JTK
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 15th Feb 2010 10:52 Edited at: 15th Feb 2010 11:00
Well they're already defined so what do you expect to have to do? You can either undefine them and replace them with yours, not define theirs to begin with(by first defining _BASETSD_H_ by the looks of it), or keep theirs.

Also, you forgot 'name *const' and 'const name *const'

Login to post a reply

Server time is: 2024-11-20 03:44:41
Your offset time is: 2024-11-20 03:44:41