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

📄 form1.frm

📁 一个可以生成ZIP的解压缩和被解压缩的DLL,这是本人在2001年刚学完VB后写的,我认为对初学者编好DLL很有意义
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3225
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6345
   LinkTopic       =   "Form1"
   ScaleHeight     =   3225
   ScaleWidth      =   6345
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   390
      Left            =   2940
      TabIndex        =   5
      Top             =   1860
      Width           =   1605
   End
   Begin VB.TextBox Text2 
      Height          =   480
      Left            =   1395
      TabIndex        =   2
      Top             =   900
      Width           =   3210
   End
   Begin VB.TextBox Text1 
      Height          =   465
      Left            =   1410
      TabIndex        =   1
      Top             =   225
      Width           =   3090
   End
   Begin VB.CommandButton Command1 
      Caption         =   "压缩"
      Height          =   330
      Left            =   555
      TabIndex        =   0
      Top             =   1905
      Width           =   1470
   End
   Begin VB.Label Label2 
      Caption         =   "压缩的目录"
      Height          =   210
      Left            =   225
      TabIndex        =   4
      Top             =   1020
      Width           =   915
   End
   Begin VB.Label Label1 
      Caption         =   "压缩的文件名"
      Height          =   345
      Left            =   210
      TabIndex        =   3
      Top             =   285
      Width           =   1155
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim zip As OIRZIP
Dim op As Long
Set zip = New OIRZIP

op = zip.ZipFile(Text1.Text, Text2.Text)
If op <> 0 Then
MsgBox "ok"
End If







End Sub

Private Sub Command2_Click()
Unload Me

End Sub

⌨️ 快捷键说明

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