File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,8 @@ Public Function PrintImages( _
128
128
Dim baImage() As Byte
129
129
Dim lTargetX As Long
130
130
Dim lTargetY As Long
131
- Dim lTargetW As Long
132
- Dim lTargetH As Long
131
+ Dim lTargetW As Long
132
+ Dim lTargetH As Long
133
133
134
134
On Error GoTo EH
135
135
'--- will use GDI+ to retrieve input images dimensions
Original file line number Diff line number Diff line change @@ -63,9 +63,9 @@ Private Sub Main()
63
63
End Sub
64
64
65
65
Private Function Process (vArgs As Variant ) As Long
66
- Dim sPrinterName As String
67
66
Dim cFiles As Collection
68
67
Dim vInputFiles As Variant
68
+ Dim sPrinterName As String
69
69
Dim lIdx As Long
70
70
Dim sError As String
71
71
Dim lPos As Long
@@ -84,7 +84,8 @@ Private Function Process(vArgs As Variant) As Long
84
84
If LenB(m_oOpt.Item("error" )) <> 0 Then
85
85
ConsoleError "Error in command line: " & m_oOpt.Item("error" ) & vbCrLf & vbCrLf
86
86
If Not (m_oOpt.Item("-h" ) Or m_oOpt.Item("-?" ) Or m_oOpt.Item("arg0" ) = "?" ) Then
87
- Exit Function
87
+ Process = 1
88
+ GoTo QH
88
89
End If
89
90
End If
90
91
If m_oOpt.Item("#arg" ) < 0 Or m_oOpt.Item("-h" ) Or m_oOpt.Item("-?" ) Or m_oOpt.Item("arg0" ) = "?" Then
@@ -99,7 +100,7 @@ Private Function Process(vArgs As Variant) As Long
99
100
If m_oOpt.Item("#arg" ) < 0 Then
100
101
Process = 100
101
102
End If
102
- Exit Function
103
+ GoTo QH
103
104
End If
104
105
Set cFiles = New Collection
105
106
For lIdx = 0 To m_oOpt.Item("#arg" )
@@ -181,7 +182,7 @@ Private Function Process(vArgs As Variant) As Long
181
182
Next
182
183
If FileExists(m_oOpt.Item("-o" )) Then
183
184
If Not m_oOpt.Item("-q" ) Then
184
- ConsoleError m_oOpt.Item("-o" ) & " output sucesfully !" & vbCrLf & vbCrLf
185
+ ConsoleError m_oOpt.Item("-o" ) & " output successfully !" & vbCrLf & vbCrLf
185
186
End If
186
187
End If
187
188
QH:
You can’t perform that action at this time.
0 commit comments