Link to home
Start Free TrialLog in
Avatar of InvisibleMan
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.
Avatar of gencross
gencross

This sets a value to a registry key.

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.

ASKER CERTIFIED SOLUTION
Avatar of hes
hes
Flag of United States of America image

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
Sorry...Didn't look closely enough.  This does get the setting not save it.
Avatar of InvisibleMan

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.