Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / April 2006

Tip: Looking for answers? Try searching our database.

Preprocessor directory for 2003 vs Mobile 5

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ataha - 20 Apr 2006 16:16 GMT
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
Daniel Moth - 21 Apr 2006 11:32 GMT
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
--
http://www.danielmoth.com/Blog/

> Is there a pre-processor directive that will let me differentiate
> whether the code is being built for pocket pc 2003 or windows mobile
[quoted text clipped - 5 lines]
> any help is appreciated
> Taha

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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



©2008 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.