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.

Reading more than on registry roots

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-06-2010, 08:16 AM
Junior Member
 
Join Date: Jul 2009
Posts: 38
Default Reading more than on registry roots

Hello,

I am trying to read in more than one registry root but it does not work!

Normally I work with the rtCurrentUser rootkey but now I also need to read in the rtLocalMachine rootkey but hat allways fails.

Can anyone show me a small example how to do that?

Thanks in advance.

Regards,
Rob
__________________
Sony Ericsson XPERIA X1i
ROM 1.05.172.13 (12-05-09)
Reply With Quote
  #2 (permalink)  
Old 02-06-2010, 10:31 AM
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 RobVanBrunschot,

see the attached sample...


specci48
Attached Files
File Type: sbp Registry.sbp (1.2 KB, 14 views)
Reply With Quote
  #3 (permalink)  
Old 02-06-2010, 01:13 PM
Junior Member
 
Join Date: Jul 2009
Posts: 38
Default

Quote:
Originally Posted by specci48 View Post
Hello RobVanBrunschot,

see the attached sample...


specci48
specci48, thanks for your response.

The only thing is that it does not work for me.
The error message is:
The object reference is not stated on a object

The component registry is added and two objectes are added, reg1 and reg2.

regards, Rob
__________________
Sony Ericsson XPERIA X1i
ROM 1.05.172.13 (12-05-09)
Reply With Quote
  #4 (permalink)  
Old 02-06-2010, 06:26 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Are you running it on the desktop or on the device?
The registry keys in specci's example are only available on the desktop.
Reply With Quote
  #5 (permalink)  
Old 02-07-2010, 08:49 AM
Junior Member
 
Join Date: Jul 2009
Posts: 38
Default

Erel,

I did try it on the desktop (under Windows Vista) and the error comes at the command Label4.Text = reg2.GetValue(key, "Value")

Rob
__________________
Sony Ericsson XPERIA X1i
ROM 1.05.172.13 (12-05-09)
Reply With Quote
  #6 (permalink)  
Old 02-07-2010, 10:35 AM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

I developed the example under xp.

Maybe vista stores that value at a different place or does anyone know, if these values can only be read with administrator rights?


specci48
Reply With Quote
  #7 (permalink)  
Old 02-07-2010, 01:22 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

It works fine on Vista without admin rights.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #8 (permalink)  
Old 02-10-2010, 08:17 PM
Junior Member
 
Join Date: Jul 2009
Posts: 38
Default

I got it working, my paths were not correct.

Thanks for all the help.

Regards, Rob
__________________
Sony Ericsson XPERIA X1i
ROM 1.05.172.13 (12-05-09)
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
How To Monitor A Registry Key hAndyMan Questions (Windows Mobile) 4 03-12-2010 03:50 PM
Reading Registry Keys - Bug or Mistake? Raytracer Questions (Windows Mobile) 1 04-18-2008 04:31 PM
reading and editing registry Dr. Feelgood Questions (Windows Mobile) 3 02-16-2008 07:18 AM
Reading com ports information from the registry Erel Code Samples & Tips 4 11-23-2007 01:09 PM
registry bdiscount Questions (Windows Mobile) 4 05-11-2007 02:29 PM


All times are GMT. The time now is 10:43 AM.


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