Solved

How do I read a HKEY_CURRENT_USER registry value in VB6?

Posted on 2008-10-20
1
625 Views
Last Modified: 2012-05-05
How do I read a HKEY_CURRENT_USER registry value in VB6?
0
Comment
Question by:pat_cunningham
1 Comment
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 22759256
Hi, pat_cunningham.

Something like this will do it.
Dim objShell 

Set objShell = CreateObject("WScript.Shell")

varValue = objShell.RegRead("HKCU\SomeKey")

Open in new window

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now