Re: cant read the registry
Quote:
Originally posted by Acidic
I am using a module by KayJay that I found in the codebank. Which I've attached
Although I seriously doubt the fault is in there.
I'm trying to access a certain key in the registry. and save to it works using this:
VB Code:
Call SaveSettingString(HKEY_CURRENT_USER, "\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "User Agent", cmbUA.Text)
But I have trouble when reading the key using this:
VB Code:
MsgBox GetSettingString(HKEY_CURRENT_USER, "\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "User Agent")
it just return a blank string
Why is this happening? Why don't I get what has been saved?
Set a breakpoint on the first line of code in the GetSettingString function and when the code gets there press F8 to step through the code line by line so that you can look at the variables and see what is happening.