what do you mean with version number? The OS version? The device-id? ...?
E.g. with the registry.dll you are able to read out all values stored in the registry.
That's what i ment.
I want to know what kind of system my app is running.
I have seen your sample of the ownername out of the registry, but i have really no clue how to retrieve the version number.
thanks.
Tim
Hi speeci48
Just for info, this key is not available in my iPAQ hx4700 PPC2003SE, unfortunately.
Hi Tim
I am almost sure you are after your device's operating system version.
Just to offer you an alternative, you can retrieve the .NET version
under which your B4PPC application is running using the hardware.dll.
That doesnot work.
I have several pocketpc. They all give "1.0.4292.0" as .net string. 1 is pocketpc2002 and another is a windows mobile 5.0
But the sql database will not work on the old thing.
That's why i want to know what kind of pda the programme is running on.
(Maybe i should have said that in my first post:signOops
It is not the device but the version of the Compact Framework that matters. The SQGLlite database needs version 2.0 (see the Help overview). Your WM5.0 device may have it, the WM2002 device won't.
Yes, So far so good, but...
The wm2002 doesn't have CF2.0, and it is not possible to install it.
How to retreive the device? I want to know,
- if CF 2.0 is installed, and
-if not... could it be installed? And
- if not... stop Basic4ppc-prog and start another prog
Without asking the user!
My prog will be used by 200+ users. Most of them are beginners, they will not understand
The *.exe.config file produced by the version 5.80 compiler forces your app to run under 2.0 if available otherwise1.0. Use the NetVersion method in the Hardware library to establish the version of the Framework the app is running under.
As to device detection I don't know. Maybe you could detect the OS version in the Registry using the Registry library. I don't know if it is present - maybe someone else will know?