我按你的那种方式改了好几天,但改不对,大红袍能帮我一下吗,应该怎么样才能更改第二种方法那里,以下是我的没改的原码
Dim n As Integer = GetConfigValue("Count",1)
Dim Code As String = GetConfigValue("Register" & ComputerId,"")
Dim sss As String
Try
sss = DecryptText(Code,"abc","abc")
Catch ex As Exception
End Try
Dim Ok As Boolean
If Code > "" AndAlso sss = ComputerId Then '如果注册码正确
OK = True
Else
If n > 0 Then
Forms("注册").Open()
Code = GetConfigValue("Register" & ComputerId,"")
Try
sss = DecryptText(Code,"abc","abc")
Catch ex As Exception
End Try
If Code > "" AndAlso sss = ComputerId Then '如果注册码正确
OK = True
End If
End If
If n > 0 AndAlso Ok = False Then
Messagebox.Show("您正在使用的产品已经超出试用次数!")
Syscmd.Project.Exit()
End If
End If
n = n + 1
SaveConfigValue("Count",n)