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
>
>
>