📄 frmstatus.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmStatus
BorderStyle = 3 'Fester Dialog
ClientHeight = 1890
ClientLeft = 45
ClientTop = 45
ClientWidth = 4680
ControlBox = 0 'False
BeginProperty Font
Name = "Microsoft Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "frmStatus.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1890
ScaleWidth = 4680
StartUpPosition = 3 'Windows-Standard
Begin VB.Timer tmrExit
Enabled = 0 'False
Interval = 2000
Left = 120
Top = 1440
End
Begin VB.Timer tmrRun
Interval = 300
Left = 120
Top = 960
End
Begin MSComctlLib.ProgressBar pbProgress
Height = 375
Left = 720
TabIndex = 2
Top = 1440
Width = 3855
_ExtentX = 6800
_ExtentY = 661
_Version = 393216
Appearance = 1
End
Begin VB.Label lblStatus
AutoSize = -1 'True
Caption = "Please wait..."
Height = 195
Left = 720
TabIndex = 3
Top = 1080
Width = 945
End
Begin VB.Label lblInfo
Caption = "The B++ linker is expanding the runtime file and appends the compiled code of your application to it."
Height = 495
Left = 720
TabIndex = 1
Top = 480
Width = 3855
End
Begin VB.Label lblStandBy
AutoSize = -1 'True
Caption = "Please stand by!"
BeginProperty Font
Name = "Microsoft Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 720
TabIndex = 0
Top = 120
Width = 1410
End
Begin VB.Image imgIcon
Height = 480
Left = 120
Picture = "frmStatus.frx":058A
Top = 480
Width = 480
End
End
Attribute VB_Name = "frmStatus"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Function Make4ChrHex(Character As String) As String
If Character = vbCr Then
Make4ChrHex = vbCr
Exit Function
ElseIf Character = vbLf Then
Make4ChrHex = vbLf
Exit Function
End If
Token$ = Hex(AscW(Character))
Do Until Len(Token) = 4
Token = "0" & Token
Loop
Make4ChrHex = Token
End Function
Private Sub tmrExit_Timer()
End
End Sub
Private Sub tmrRun_Timer()
tmrRun.Enabled = False
P = Command
Q = Split(Command, " ")
TargetName = Q(0)
SourceName = Q(1)
lblStatus.Caption = "Waiting for the runtime..."
Shell App.Path & "\bImproved.EXE " & TargetName, vbNormalFocus
Do While FileLen(TargetName) < 262140
DoEvents
Loop
lblStatus.Caption = "Appending source..."
Dim PStr As String * 1
Open SourceName For Binary As #1
Open TargetName For Binary As #2
Seek #2, 262145
pbProgress.Max = LOF(1) + 2
Do Until EOF(1)
Get #1, , PStr
Put #2, , Make4ChrHex(PStr)
pbProgress.Value = Seek(1)
Loop
Close #2
Close #1
lblStatus.Caption = "File created."
tmrExit.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -