Re: Retrieving registry value

Tech-Archive recommends: Fix windows errors by optimizing your registry



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/


.



Relevant Pages

  • Re: Counting with distinct - Optimizer Problems
    ... Nice trick, Uri. ... I'll add that Shawn isn't missing anything, ...
    (microsoft.public.sqlserver.programming)
  • Re: DAO and Access97 WHERE clause fails
    ... That did the trick. ... BTW, I had searched extensivly on line for the answer before posting, but ... was missing the obvious, stupid coding error. ...
    (comp.lang.python)
  • Re: Stator CB750 DOHC
    ... to get it in it is very tight and does not want to seat all the way am ... I missing something is their some trick to getting it in all the way ...
    (rec.motorcycles)
  • Re: Red gingham is so hot
    ... Look at the feedback though, ... I'm missing a trick here...! ... Get size 10 tops, get a size 20 to model them (wearing only a small ...
    (uk.people.consumers.ebay)
  • Re: Retrieving registry value
    ... but I'm missing the code to alias the ... I'm not sure where you got that 'CRegKey Class' but this one works great. ... Several usage samples on the page and in the sample app. ...
    (microsoft.public.vb.general.discussion)