P
Philip Stapleton
I'm trying to delete a key from the VB settings area with
Sub main()
Dim key As Long
If RegOpenKeyEx(HKEY_CURRENT_USER, "Software\VB and VBA Program
Settings\", 0, KEY_ALL_ACCESS, key) = 0 Then
MsgBox RegDeleteKey(key, "RadarTutor")
End If
End Sub
The Open works OK but the Delete returns an error code of 5 - however,
Regedit shows a Key called HKEY_CURRENT_USER\Software\VB and VBA Program
Settings\RadarTutor
What am I doing wrong?
Sub main()
Dim key As Long
If RegOpenKeyEx(HKEY_CURRENT_USER, "Software\VB and VBA Program
Settings\", 0, KEY_ALL_ACCESS, key) = 0 Then
MsgBox RegDeleteKey(key, "RadarTutor")
End If
End Sub
The Open works OK but the Delete returns an error code of 5 - however,
Regedit shows a Key called HKEY_CURRENT_USER\Software\VB and VBA Program
Settings\RadarTutor
What am I doing wrong?