Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Retrieve version

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-07-2007, 12:28 PM
Junior Member
 
Join Date: Jun 2007
Location: Austria - Oberwölz
Posts: 49
Default Retrieve version

Hello...,
Is it possible to retrieve the version number of the device (when i use basic4ppc)?
Thanks.
Tim
Reply With Quote
  #2 (permalink)  
Old 10-07-2007, 03:45 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

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.

specci48
Reply With Quote
  #3 (permalink)  
Old 10-07-2007, 08:08 PM
Junior Member
 
Join Date: Jun 2007
Location: Austria - Oberwölz
Posts: 49
Default 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.
thanks.
Tim
Reply With Quote
  #4 (permalink)  
Old 10-07-2007, 09:25 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

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


specci48
Reply With Quote
  #5 (permalink)  
Old 10-08-2007, 10:59 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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.
Reply With Quote
  #6 (permalink)  
Old 11-15-2007, 08:30 PM
Junior Member
 
Join Date: Jun 2007
Location: Austria - Oberwölz
Posts: 49
Default

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)
Reply With Quote
  #7 (permalink)  
Old 11-15-2007, 10:27 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by timsteeman View Post
But the sql database will not work on the old thing.
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.
Reply With Quote
  #8 (permalink)  
Old 11-16-2007, 06:32 PM
Junior Member
 
Join Date: Jun 2007
Location: Austria - Oberwölz
Posts: 49
Default

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
Reply With Quote
  #9 (permalink)  
Old 11-16-2007, 06:43 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by timsteeman View Post
I want to know,
- if CF 2.0 is installed
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?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieve free space MM2forever Questions (Windows Mobile) 7 09-17-2009 10:27 PM
Retrieve Image from Sprite fjsantos Questions (Windows Mobile) 6 06-16-2008 04:57 PM
retrieve images and index lux1963 Questions (Windows Mobile) 3 05-18-2008 01:42 PM
Retrieve Device Parameters alfcen Share Your Creations 14 03-23-2008 07:11 AM
retrieve labelnames on a form Scubaticus Questions (Windows Mobile) 1 08-03-2007 10:51 PM


All times are GMT. The time now is 11:19 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0