Re: Retrieving registry value
- From: "Mike D Sutton" <EDais@xxxxxxxx>
- Date: Wed, 9 Aug 2006 17:13:31 +0100
At runtime, I need to retrieve a registry value that is not located under
HKEY_CURRENT_USER\Software\VB and VBA Program Settings, so GetSetting isn't
going to do the trick. I've found the CRegKey Class and its methods
(specifically QueryStringValue), but I'm missing the code to alias the
function in my app. Little help?
You'll either need to dig into the registry API's or use a class that wraps those for you such as the one over at
www.vbaccelerator.com
Here's some examples of using the API directly if you don't want to use the class:
http://groups.google.co.uk/group/microsoft.public.vb.winapi/msg/06ebf70a880248f3
http://groups.google.co.uk/group/microsoft.public.vb.general.discussion/msg/0639285f384c2f95
http://groups.google.co.uk/group/microsoft.public.vb.general.discussion/msg/b53324132a0b71be
http://groups.google.co.uk/group/microsoft.public.vb.winapi/msg/1a74b883efe6a773
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/
.
- Prev by Date: Re: How do I change the name of an executable?
- Next by Date: Re: Retrieving registry value
- Previous by thread: How do I change the name of an executable?
- Next by thread: Re: Retrieving registry value
- Index(es):
Relevant Pages
|