PC Review


Reply
Thread Tools Rate Thread

determining the pocket pc/emulator or PC

 
 
=?Utf-8?B?bWlj?=
Guest
Posts: n/a
 
      14th Mar 2004
Hello everyone
I wanna determine the type of devices(pocket pc/emulator or PC) by using the precompiler lik
#if
//..
#els
//.

Can I ? How ? I'm using .NET CF , C#
thanks in advance for any hel

 
Reply With Quote
 
 
 
 
Maarten Struys, eMVP
Guest
Posts: n/a
 
      14th Mar 2004
Determining what device you are running on is something you can only find
out during runtime. To do so you can use OpenNETCF.org's GetSystemInfo
method that is available inside the Smart Device Framework:
http://www.opennetcf.org/PermaLink.a...a-4c1dbe1cfef9.
On the other hand, if you want to do some specific things for either the
emulator or a PC you can always make your own define if you know beforehand
on which device you will deploy. Determining PC or device would also be
possible during runtime using Environment.OSVersion, but I wonder if that
really helps you.

--
Regards,

Maarten Struys, eMVP
PTS Software bv

www.opennetcf.org | www.dotnetfordevices.com

"mic" <(E-Mail Removed)> wrote in message
news:9DC2AA0D-D942-41CE-B51A-(E-Mail Removed)...
> Hello everyone:
> I wanna determine the type of devices(pocket pc/emulator or PC) by

using the precompiler like
> #if
> //...
> #else
> //..
>
> Can I ? How ? I'm using .NET CF , C#.
> thanks in advance for any help
>



 
Reply With Quote
 
=?Utf-8?B?bWlj?=
Guest
Posts: n/a
 
      14th Mar 2004
I thought that the C# complier buildin some precomplier definens like "_WIN32_WCE" or someone else
using that we can find out what OS we are using
But Environment.OSVersion is enough
thank you !
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
emulator for the Pocket PC =?Utf-8?B?V2FyYmlyZA==?= Microsoft Dot NET Compact Framework 7 7th Jan 2005 09:44 PM
Pocket PC Emulator =?Utf-8?B?Qmx1ZU1vb24=?= Microsoft Dot NET Compact Framework 1 30th Oct 2004 06:22 PM
When can I get Pocket PC Emulator? Steve Microsoft Dot NET Compact Framework 3 7th Oct 2004 05:49 PM
Emulator BUG: TimeSpan.Milliseconds not working on Pocket PC emulator pouchi Microsoft Dot NET Compact Framework 2 27th Jan 2004 02:36 AM
Re: Pocket PC Emulator Mike Culver Microsoft Dot NET Compact Framework 0 30th Jul 2003 12:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 AM.