Platform SDK Shell >> #define detect between WM2003 and CE4.2 and 5.0

by Gene Chang » Tue, 21 Dec 2004 21:27:08 GMT

Is there a #define in the WM 2003 SDK that would let me detect whether
I'm compiling for WM2003 or a regular CE SDK? I used to use ones for
PPC2002 and HPC2K and HPC/Pro, but I couldn't find any for WM2003.

Thanks.

Gene Chang


Platform SDK Shell >> #define detect between WM2003 and CE4.2 and 5.0

by r_z_aret » Wed, 22 Dec 2004 03:16:03 GMT


On Tue, 21 Dec 2004 08:27:08 -0500, Gene Chang



I don't know what you mean by "regular" CE SDK. If want macros that
let you distinguish among targets including Smartphone 2003, Pocket PC
2003, etc., check my 1 April 2004 contribution to a thread called
"Compiler Directive" in microsoft.public.pocketpc.developer. It shows
how I use precompiler directives in a header file I use with eVC 3 and
eVC 4.


-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com



Platform SDK Shell >> #define detect between WM2003 and CE4.2 and 5.0

by Nic » Wed, 22 Dec 2004 05:46:56 GMT

Haven't checked to confirm but WIN32_WCE should equal 0x400 on the standard
CE SDK and 0x420 on Pocket PC 2003.

Cheers,
Nic







#define detect between WM2003 and CE4.2 and 5.0

by Gene Chang » Wed, 22 Dec 2004 06:22:51 GMT

I'm using a platform that is CE built using 4.2 so the SDK is in the
wce420 section of the windows ce tools directory. So I think that
both PPC2003 and my CE build will have WIN32_WCE = 0x420. I was
hoping that Microsoft had a special #define for the PPC2003 builds
like they did for PPC2002.

Thanks.








#define detect between WM2003 and CE4.2 and 5.0

by r_z_aret » Thu, 23 Dec 2004 03:20:59 GMT

On Tue, 21 Dec 2004 17:22:51 -0500, Gene Chang



If you're thinking about _WIN32_WCE_PSPC, it seems to work for me.

Three ways to find such info:
1) Uncheck Project->Settings->C++->Customize->Suppress Startup...
I.E., stop suppressing the startup banner. The IDE will display all
project settings in the Build window. The Link section has a similar
setting.
2) Look at the box at the bottom of Tools->Settings->C++ and
Tools->Settings->Link
3) "Borrow" my code. I posted a reference earlier.





-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com