Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
End Users
Pocket PCActiveSyncMultimediaEBooksWirelessSmartPhones
Developers
Windows MobileSmartPhonesWinCE ProgrammingVB for WinCEVC++ for WinCEPlatform BuilderTest Tools
PocketPC DirectoryFree SoftwareWeb Resources
Related Topics
PalmMobile PhonesMore Topics ...

Pocket PC Forum / Developers / VC++ for WinCE / May 2006

Tip: Looking for answers? Try searching our database.

_WIN32_WCE meaning

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ulrich Eckhardt - 15 May 2006 16:10 GMT
Hi!

I just found a bad discrepancy in the use of _WIN32_WCE. With the same SDK,
eVC4 passes "/D_WIN32_WCE=500" to the compiler while VC8
passes "/D_WIN32_WCE=0x500" (Note the 500 vs 0x500!) to the compiler...

Is there any documentation available (MSDN search wasn't very helpful, there
are examples of both use in there) that offers a definite answer? Any ideas
how to best handle this?

Uli
Steve Maillet (eMVP) - 15 May 2006 18:58 GMT
It's supposed to be 0x500 so if any of the compilers are doing that wrong
then it's a bug. Easiest way to workaround it is to check for both values.

Signature

Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com

Ulrich Eckhardt - 16 May 2006 13:16 GMT
> It's supposed to be 0x500 so if any of the compilers are doing that wrong
> then it's a bug. Easiest way to workaround it is to check for both values.

So it is a bug. The problem with checking both values is that theoretically,
the values might overlap, but unless some clown converts back to using
decimal-based version numbers I think we should be fine. BTW: I found some
entries in the registry that use 500 or something similar for a CE-related
version while other entries seemed to be the binary representation of
L"500". I think that is another of the symptoms or causes of the problem.

All in all, it seems someone made a big mess, starting from the twisted idea
of putting a version pair/triplet into a single number in the first place
and finishing with not documenting it properly. Oh well, someone will work
around it.

Uli
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2012 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.