Link to home
Start Free TrialLog in
Avatar of Ice123
Ice123

asked on

Registry entries

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,
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

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
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
ASKER CERTIFIED SOLUTION
Avatar of bmatumbura
bmatumbura

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bmatumbura
bmatumbura

Thanks