PC Review


Reply
Thread Tools Rate Thread

Determining OS type and libraries compatibility

 
 
Zanna
Guest
Posts: n/a
 
      21st Feb 2004
Hi,

I need to know if the device is a PocketPC or an HandledPC.

I found in this NG how to determine the OS version, but Ppc2003 is intended
to be a Ppc and no way to know if it is an handlesPc.

Also: libraries built for PocketPC are compatible with HandledPC?

I experienced another stange thing (only on Ppc): If I have App1 and App2
that use Lib1.dll, sometimes, when I recompile App1 and Lib1 (in the same VS
solution), without make changes to Lib1, App2 no longer works!
It tell me "LoadLibraryException".

Any idea?

--
Math Parser : http://www.neodatatype.net
Sito Comune : http://www.it-lang-vb.net
+-- http://www.neodatatype.net/iclvb/AxBalloon.zip
+-- http://www.neodatatype.net/iclvb/vb_project.zip



 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      21st Feb 2004
You can easily get the OS version from Environment.OSVersion property. To
get the platform name you will need to P/Invoke SystemParametersInfo or use
the Smart Device Framework which includes an implementation, our
EnvironmentEx.PlatformName will return the platform name string e.g.
PocketPC, Smartphone etc
www.opennetcf.org/smartdeviceframework.asp

In general unless you are specifically targetting a feature on a particular
platform then you should probably choose Windows CE as the target type for
any class library project. Also in your case of recompiling, remember that
even if you make no code changes your version number will be
auto-incremented by visual studio unless you supply a full version number -
see the AssemblyInfo.cs (or .vb) for the project to set this attribute.

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Zanna" <(E-Mail Removed)> wrote in message
news:x%GZb.762$(E-Mail Removed)...
> Hi,
>
> I need to know if the device is a PocketPC or an HandledPC.
>
> I found in this NG how to determine the OS version, but Ppc2003 is

intended
> to be a Ppc and no way to know if it is an handlesPc.
>
> Also: libraries built for PocketPC are compatible with HandledPC?
>
> I experienced another stange thing (only on Ppc): If I have App1 and App2
> that use Lib1.dll, sometimes, when I recompile App1 and Lib1 (in the same

VS
> solution), without make changes to Lib1, App2 no longer works!
> It tell me "LoadLibraryException".
>
> Any idea?
>
> --
> Math Parser : http://www.neodatatype.net
> Sito Comune : http://www.it-lang-vb.net
> +-- http://www.neodatatype.net/iclvb/AxBalloon.zip
> +-- http://www.neodatatype.net/iclvb/vb_project.zip
>
>
>



 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      21st Feb 2004
Handhel PC is based on CE 2.11, which is definitely not supported by the
Compact Framework, so I'd not be surprised by any errors you get. In fact
I'm surprised much of anything will run. The performance must be abhorrent.

-Chris

"Zanna" <(E-Mail Removed)> wrote in message
news:x%GZb.762$(E-Mail Removed)...
> Hi,
>
> I need to know if the device is a PocketPC or an HandledPC.
>
> I found in this NG how to determine the OS version, but Ppc2003 is

intended
> to be a Ppc and no way to know if it is an handlesPc.
>
> Also: libraries built for PocketPC are compatible with HandledPC?
>
> I experienced another stange thing (only on Ppc): If I have App1 and App2
> that use Lib1.dll, sometimes, when I recompile App1 and Lib1 (in the same

VS
> solution), without make changes to Lib1, App2 no longer works!
> It tell me "LoadLibraryException".
>
> Any idea?
>
> --
> Math Parser : http://www.neodatatype.net
> Sito Comune : http://www.it-lang-vb.net
> +-- http://www.neodatatype.net/iclvb/AxBalloon.zip
> +-- http://www.neodatatype.net/iclvb/vb_project.zip
>
>
>



 
Reply With Quote
 
Zanna
Guest
Posts: n/a
 
      21st Feb 2004
"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message

> You can easily get the OS version from Environment.OSVersion property. To
> get the platform name you will need to P/Invoke SystemParametersInfo


So I have to base on the paltform name rather on a numeric value or
enumerator to decide the type of the device?


> In general unless you are specifically targetting a feature on a

particular
> platform then you should probably choose Windows CE as the target type for
> any class library project.


If I choose this I cannot use the InputPanel

> Also in your case of recompiling, remember that
> even if you make no code changes your version number will be
> auto-incremented by visual studio unless you supply a full version

number -
> see the AssemblyInfo.cs (or .vb) for the project to set this attribute.


Oh! And this determine the compatibility?

Thanks!


 
Reply With Quote
 
Zanna
Guest
Posts: n/a
 
      21st Feb 2004
"Chris Tacke, eMVP" <ctacke[at]Open_NET_CF[dot]org> wrote in message

> Handhel PC is based on CE 2.11, which is definitely not supported by the
> Compact Framework


Sorry, my fault: with HandledPC I mean that PocketPC 640x320 screen size
with WinCe 4.1 or WinCe.net

Thanks


 
Reply With Quote
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      21st Feb 2004
See my other post about SystemParamtersInfo to get the platform name. While
all Pocket PCs will return "PocketPC", there is no fixed platform name for
the wide variety of CE.NET based devices.

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Zanna" <(E-Mail Removed)> wrote in message
news:VQIZb.1577$(E-Mail Removed)...
> "Chris Tacke, eMVP" <ctacke[at]Open_NET_CF[dot]org> wrote in message
>
> > Handhel PC is based on CE 2.11, which is definitely not supported by the
> > Compact Framework

>
> Sorry, my fault: with HandledPC I mean that PocketPC 640x320 screen size
> with WinCe 4.1 or WinCe.net
>
> Thanks
>
>



 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      21st Feb 2004
So really the difference is screen size? You can query that directly by
using the Screen class (plus all of Peter's suggestions).

-Chris

"Zanna" <(E-Mail Removed)> wrote in message
news:VQIZb.1577$(E-Mail Removed)...
> "Chris Tacke, eMVP" <ctacke[at]Open_NET_CF[dot]org> wrote in message
>
> > Handhel PC is based on CE 2.11, which is definitely not supported by the
> > Compact Framework

>
> Sorry, my fault: with HandledPC I mean that PocketPC 640x320 screen size
> with WinCe 4.1 or WinCe.net
>
> Thanks
>
>



 
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
IInternetZoneManager and questions about Type Libraries gbraux Microsoft C# .NET 5 12th Aug 2007 11:51 PM
Registered Type Libraries R Avery Microsoft Excel Programming 0 8th Aug 2005 02:14 PM
Generating type libraries =?Utf-8?B?amVzdGVy?= Microsoft Dot NET Framework 2 14th Nov 2004 01:58 AM
Error: FEFF58h while determining compatibility Philip Price Windows XP Setup 1 8th Sep 2004 10:56 PM
type checking with libraries Alessandro Fragnani de Morais Microsoft Dot NET Framework 3 29th Dec 2003 01:32 AM


Features
 

Advertising
 

Newsgroups
 


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