PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

A simple question

Anyone know what are the definitions that eVC++ uses to distinguish between the HPC/PPC/PsPC plaforms?
I know it defines something, I just can remember what!

Also, why does the HPC SDK have all the DirectX3 Headers? :roll:

cheers...

-gamefreaks
Well, it depends on whether or not you're using MFC. If you're using MFC then _WIN32_WCE_PSPC is defined for Pocket PC / Palm-Sized PC builds.

_WIN32_WCE is defined for all Windows CE builds. It will be set to the version number you are targeting. So for example _WIN32_WCE will be 300 for Windows CE 3.0. I manually add the _WIN32_WCE_PSPC definition to my project settings for the Pocket PC platform for non MFC builds, so I can determine which I'm targeting with preprocessor commands.

Dan East
_WIN32_WCE_PSPC is also defined in ATL. So if you are not using MFC you can simply use:

Code:

#include <atlbase.h>

#if defined(_WIN32_WCE_PSPC)
...
#else
...
#endif
Then _WIN32_WCE_PSPC will be defined for all builds, including HPC, HPC Pro and HPC 2000, which defeats the whole purpose.

Dan East
No it won't. It's not defined in the HPC Platform SDK. I have used that to support the Jornada 720 HPC in PocketFrog and it works perfectly. (No, I didn't modify my platform SDK).
Yeah, I could just use:
'if (_WIN32_WCE < 300)' for HPC builds. HPC Pro is CE2.11.

But i've seen code somewhere else which does something else with definintions.

Thanks

-gamefreaks
I've got a Jornada 420 sitting on my desk. It's a CE 2.11 PSPC, as was the Casio E-105. :)

Dan East
I thought HPC Pro was WCE300 also... But I'm no programmer, really.
If I remember correctly, HPC Pro was CE 2.12. HPC 2000 is CE 3.0. The Jornada 720 is HPC 2000.

Dan East
Yes, HPC Pro is CE2, HPC 2000 is CE3
As I understand it:

Handheld PC: CE2.0 (Jornada 620LX et al)
Handheld PC Pro: CE2.11 (Jornada 680/90)
Handheld PC 2000: CE3.0 (Jornada 720,NEC MP 790)

Palm Size PC: CE2.11 (Philips Nino etc)
(Though I think CE2.12 updates exist)

PocetPC 2000: CE3.0

As it is since I am only targetting HPC Pro and PPC devices, anything < CE3.0 is a HPC. (Even for HPC 2000, I use the HPC Pro SDK so I can target the popular Jornada 680/690's)
But however, if at any point (unlikley though) I need to diffrenciate between PsPC and HPC Pro devices, I will need another way.

While you can define different things for different target CPU's in the project settings, this wont work across different SDK's.

It's quite possible that the definitions that I am refering to are from MFC.
Yeah, it looks like <atlbase.h> has the definitions I am refering to.

Thanks

-gamefreaks