Preprocessor directory for 2003 vs Mobile 5

  • Thread starter Thread starter ataha
  • Start date Start date
A

ataha

Is there a pre-processor directive that will let me differentiate
whether the code is being built for pocket pc 2003 or windows mobile
5.0 ?

ive looked around and _win32_wce doesnt seem to work for me (im writing
in c#).

any help is appreciated
Taha
 
There isn't anything built in.

Nothing stops you from creating two projects that share the code files where
you have declared your own compilation constant to distinguish between the
two. Alternatively you can distinguish at runtime by checking the OSVersion.
Both these approaches are used for targeting devices and desktop but can
equally be applied for targeting two different devices (if such a need
exists). For more on the principal read this and the links it points to:
http://www.danielmoth.com/Blog/2004/09/share-code-if-fullframe_17.html

Cheers
Daniel
 
Back
Top