⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmreg.frm

📁 用VB编的51单片机反汇编程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmReg 
   Caption         =   "注册软件"
   ClientHeight    =   3555
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4305
   LinkTopic       =   "Form1"
   ScaleHeight     =   3555
   ScaleWidth      =   4305
   StartUpPosition =   1  'CenterOwner
   Begin VB.Frame Fra1 
      Height          =   3375
      Left            =   60
      TabIndex        =   0
      Top             =   120
      Width           =   4155
      Begin VB.TextBox Txtbj 
         Height          =   375
         Left            =   840
         TabIndex        =   6
         Text            =   "Text1"
         Top             =   720
         Width           =   1575
      End
      Begin VB.TextBox TxtIn 
         Height          =   315
         Left            =   840
         TabIndex        =   3
         Text            =   "Text1"
         Top             =   1680
         Width           =   2895
      End
      Begin VB.Label Label1 
         Caption         =   "本机码:"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   315
         Left            =   840
         TabIndex        =   5
         Top             =   300
         Width           =   1275
      End
      Begin VB.Label Label2 
         Caption         =   "输入注册码:"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   315
         Left            =   840
         TabIndex        =   4
         Top             =   1260
         Width           =   1935
      End
      Begin VB.Label Label3 
         Caption         =   "开始注册"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   21.75
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF00FF&
         Height          =   495
         Left            =   1020
         TabIndex        =   2
         Top             =   2220
         Width           =   1935
      End
      Begin VB.Label Label4 
         Caption         =   "算了,下次注册"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   315
         Left            =   900
         TabIndex        =   1
         Top             =   2820
         Width           =   2235
      End
   End
   Begin VB.Label Label8 
      Caption         =   "shen_guang_wu@hotmail.com"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF00FF&
      Height          =   375
      Left            =   480
      TabIndex        =   10
      Top             =   2640
      Width           =   3615
   End
   Begin VB.Label Label7 
      Caption         =   "欢迎提意见"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   26.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   600
      TabIndex        =   9
      Top             =   1800
      Width           =   3075
   End
   Begin VB.Label Label6 
      Caption         =   "可以放心使用"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   26.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   360
      TabIndex        =   8
      Top             =   1020
      Width           =   3615
   End
   Begin VB.Label Label5 
      Caption         =   "你已经注册"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   26.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   600
      TabIndex        =   7
      Top             =   300
      Width           =   3075
   End
End
Attribute VB_Name = "FrmReg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_Load()
If Reg_OK Then Fra1.Visible = False
Txtbj.Text = Str(Reg_code)
TxtIn.Text = ""
End Sub

Private Sub Label3_Click()
Dim Fso As New FileSystemObject
Dim hFile As TextStream
CDKey = TxtIn.Text
If (CDKey = CodeToCDKey(Reg_code)) Then
    Reg_OK = True
    MsgBox "你已经成功注册该软件", vbOKOnly, "注册软件"
    FrmMain.BtnTrans.Enabled = Reg_OK
    FrmMain.MNASM.Enabled = Reg_OK
Else
    MsgBox "软件注册不成功!!!!" + L + L + "请不要多次试探,否则后果自负!!", vbOKOnly, "注册软件"
    Unload Me
    Exit Sub
End If
Set hFile = Fso.CreateTextFile(App.Path + "\NoASM.DLL", True)
hFile.WriteLine (Str(Reg_code))
hFile.WriteLine (CDKey)
If Reg_OK Then
    hFile.WriteLine ("10000")
Else
    hFile.WriteLine ("0")
End If
hFile.WriteLine (Str(Num))
hFile.Close
Unload Me
End Sub

Private Sub Label4_Click()
Unload Me
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -