Retrieve version

Discussion in 'Questions (Windows Mobile)' started by timsteeman, Oct 7, 2007.

  1. timsteeman

    timsteeman Member Licensed User

    Is it possible to retrieve the version number of the device (when i use basic4ppc)?
  2. specci48

    specci48 Well-Known Member Licensed User

    Hello Tim,

    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.

  3. timsteeman

    timsteeman Member Licensed User

    Version number of the OS

    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.
  4. specci48

    specci48 Well-Known Member Licensed User

    On my WM5 device I found this:

    Path: \HKLM\SystemParametersInfo
    Key: SysVer=5.1

    But I don't know if this fits for other os versions...

  5. alfcen

    alfcen Well-Known Member Licensed User

    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.
  6. timsteeman

    timsteeman Member Licensed User

    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:)
  7. agraham

    agraham Expert Licensed User

    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.
  8. timsteeman

    timsteeman Member Licensed User

    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
  9. agraham

    agraham Expert Licensed User

    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?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice