Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Retrieve version


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-07-2007, 01:28 PM
Junior Member
 
Join Date: Jun 2007
Location: Netherlands
Posts: 17
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, 04:45 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 638
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, 09:08 PM
Junior Member
 
Join Date: Jun 2007
Location: Netherlands
Posts: 17
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, 10:25 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 638
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, 11:59 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
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, 09:30 PM
Junior Member
 
Join Date: Jun 2007
Location: Netherlands
Posts: 17
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, 11:27 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,689
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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, 07:32 PM
Junior Member
 
Join Date: Jun 2007
Location: Netherlands
Posts: 17
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, 07:43 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,689
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieve free space MM2forever Questions & Help Needed 3 11-17-2008 08:42 AM
Retrieve Image from Sprite fjsantos Questions & Help Needed 6 06-16-2008 05:57 PM
retrieve images and index lux1963 Questions & Help Needed 3 05-18-2008 02:42 PM
Retrieve Device Parameters alfcen Share Your Creations 14 03-23-2008 08:11 AM
retrieve labelnames on a form Scubaticus Questions & Help Needed 1 08-03-2007 11:51 PM


All times are GMT. The time now is 05:56 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0