InvisibleMan
asked on
Question about GetSetting?
Can someone explain to me what this does? I know it has something to do with the registry.
m_strSaveDir = GetSetting(App.EXEName, "SaveSection", "SaveKey")
Is it assigning a value to the Windows registry? I know it is being used somehow maybe with a common dialog box. How do I delete whats in it.
m_strSaveDir = GetSetting(App.EXEName, "SaveSection", "SaveKey")
Is it assigning a value to the Windows registry? I know it is being used somehow maybe with a common dialog box. How do I delete whats in it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry...Didn't look closely enough. This does get the setting not save it.
ASKER
Thanks guys do you think because a dialog box is being used and some drive mappings that it is being used to set the path. I know that it is actually saving a path to a text file. For example, C:\Testing.txt. So now everytime the code runs its pulling into m_strSaveDir that path. Should I delete it or just default it to nothing?
If you are not going to use the registry setting any further then delete it and get rid of the code that Gets/Sets it. No need to do more than you have to.
Run regedit. Once you have the program running choose Edit/Find and search for the key that is in the GetSetting call. When you find it you can delete it.
NOTE: Deleting a registry key could cause problems with the app that put it there.