
加好友 发短信
等级:九尾狐
帖子:2236
积分:15335
威望:0
精华:0
注册:2015/7/18 10:10:00
|
Post By:2022/4/18 18:00:00 [显示全部帖子]
Dim n As Integer = GetConfigValue("Count",1) Dim Code As String = GetConfigValue("Register" & ComputerId & "A" ,"") Dim Ok As Boolean If Code > "" AndAlso DecryptText(Code,"abc","abc") = ComputerId & "A" Then '如果注册码正确 OK = True Else If n > 30 Then Forms("注册").Open() Code = GetConfigValue("Register" & ComputerId & "A" ,"") If Code > "" AndAlso DecryptText(Code,"abc","abc") = ComputerId & "A" Then '如果注册码正确 OK = True End If End If If n > 60 AndAlso Ok = False Then Messagebox.Show("您正在使用的产品已经超出试用次数!") Syscmd.Project.Exit() End If End If n = n + 1 SaveConfigValue("Count",n)
是这样吗?
|
|