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

📄 form1.frm

📁 c8051f 软件读出的FLASH数据转换成二进制数据
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   375
   ClientWidth     =   4665
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4665
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton out 
      Caption         =   "out"
      Height          =   375
      Left            =   1800
      TabIndex        =   2
      Top             =   1680
      Width           =   855
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1560
      TabIndex        =   1
      Top             =   480
      Width           =   2655
   End
   Begin VB.CommandButton open 
      Caption         =   "open"
      Height          =   375
      Left            =   720
      TabIndex        =   0
      Top             =   480
      Width           =   855
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   0
      Top             =   2760
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim str As String
Dim d   As Byte

Private Sub open_Click()
 
 On Error Resume Next
 CommonDialog1.CancelError = True

 CommonDialog1.DialogTitle = "打开文件"
 CommonDialog1.FileName = ""
 CommonDialog1.Filter = "txt文件(*.txt)|*.txt|"
 CommonDialog1.ShowOpen
 
 If Err = cdlCancel Then
   Exit Sub
 Else
   Text1.Text = CommonDialog1.FileName
 End If
End Sub



Private Sub out_Click()
 Open CommonDialog1.FileName For Input As #2
  Open "./out.bin" For Binary Access Write As #3
   Do While Not EOF(2)
    str = ""
    Line Input #2, str
    d = CDec("&H" + Left$(str, 2))
    Put #3, , d
    Line Input #2, str
   Loop
  Close #3
 Close #2
  
End Sub

⌨️ 快捷键说明

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