我用开发版,用写入注册表的方式写入机器码和密码,每次更新程序后原来注册码都不能用了,要求重新注册,是什么原因
Dim n As Integer = GetConfigValue("Count",1)
Dim Code As String = GetConfigValue("Register" & ComputerId,"")
Dim Ok As Boolean
If Code > "" AndAlso DecryptText(Code,"abc","abc") = ComputerId Then '如果注册码正确
OK = True
Else
n = n + 1
SaveConfigValue("Count",n)
If n > 5
Forms("注册").Open()
End If
End If