When using the below code to save a registration key for our app, a new user (I can't replciate it) is getting a runtime error 5 message.
For the life of me I can't see how the error is being generatedI could add "On Error Resume Next" but each time the user opens the program it will ask for a registration key again which we can't have happen?
MSDN states "An error occurs if the key setting can’t be saved for any reason." Not very helpful![]()
Does the user need to have admin privilages for the key to be saved in the registry? Any suggestions?
VB Code:
Private Sub SaveRegSetting(sRegText As String) SaveSetting "ProgramName", "Registration", "Entry", sRegText End Sub




I could add "On Error Resume Next" but each time the user opens the program it will ask for a registration key again which we can't have happen?
Reply With Quote