Real Software Forums

Windows registry
Page 1 of 1

Author:  torrid [ Tue Jul 17, 2012 1:09 pm ]
Post subject:  Windows registry

I have code working that gets a specific registry location... and its default value.

For example to get a specific key I might access the default value from:


But in one case on the RIGHT SIDE in regedit... where the default is located... I had used that to store the Title and Path to most recently used files that were opened by the app.

So at this location:

Under there is Title1, Title2, etc.

If I try areg = areg.Child("Title1") then I get a RegistryAccessException.

I don't think Child is the right way to get those values.


Author:  timhare [ Tue Jul 17, 2012 2:06 pm ]
Post subject:  Re: Windows registry

Child is for the subfolders on the left. Value is for the entries on the right.

somevalue = areg.Value("Title1")

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group