Solved

Registry entries

Posted on 2003-11-17
4
427 Views
Last Modified: 2010-05-01
Could someone please explain how to read and write to the registry? I would like to be able to save various settings in the registry. I am creating a program that will need to be run on both win2000 and winXP systems. I have read the msdn entries and tried using the getsetting() and savesetting() functions, but cant find where they actually get saved to!

many thanks,
0
Comment
Question by:Ice123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 9762959
Basically, SaveSetting saved the values into registry: HKEY_CURRENT_USER\Software\VB and VBA Program Settings, to make it more flexible, you must using the existing Registry APIs. Take a look on the links below and try find useful examples

http://www.freevbcode.com/listcode.asp?Category=3
http://www.vbcode.com/asp/code.asp?lstCategory=Registry

Hope this helps
0
 
LVL 9

Expert Comment

by:p_sie
ID: 9762968
They are saved in "My Computer\HKEY_CURRENT_USER\Software\VB and VBA Program Settings".

When saving a setting, you enter the appname, which will be the folder the settings go into.
When useing getsetting you only have to fill in the appname and not the entire registry key
0
 
LVL 11

Accepted Solution

by:
bmatumbura earned 50 total points
ID: 9763343
Also have a look at this Registry Access Class I posted at:

http://www.freevbcode.com/ShowCode.Asp?ID=4330
0
 
LVL 11

Expert Comment

by:bmatumbura
ID: 9769605
Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

729 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