VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmMain
Caption = "MiscFixes"
ClientHeight = 6825
ClientLeft = 270
ClientTop = 450
ClientWidth = 9390
LinkTopic = "Form1"
ScaleHeight = 6825
ScaleWidth = 9390
StartUpPosition = 3 'Windows Default
Begin VB.CheckBox chkPopulate
Caption = "&Populate Help Image"
Height = 255
Left = 120
TabIndex = 12
Top = 1560
Width = 1935
End
Begin VB.TextBox txtOutput
Height = 4335
Left = 120
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 15
Top = 2400
Width = 9135
End
Begin VB.CommandButton cmdClose
Caption = "Close"
Height = 375
Left = 8400
TabIndex = 14
Top = 1920
Width = 855
End
Begin VB.CommandButton cmdBrowse
Caption = "..."
Height = 255
Index = 3
Left = 8880
TabIndex = 11
Top = 1200
Width = 375
End
Begin VB.CommandButton cmdBrowse
Caption = "..."
Height = 255
Index = 2
Left = 8880
TabIndex = 8
Top = 840
Width = 375
End
Begin VB.CommandButton cmdBrowse
Caption = "..."
Height = 255
Index = 1
Left = 8880
TabIndex = 5
Top = 480
Width = 375
End
Begin VB.CommandButton cmdBrowse
Caption = "..."
Height = 255
Index = 0
Left = 8880
TabIndex = 2
Top = 120
Width = 375
End
Begin MSComDlg.CommonDialog dlgCommon
Left = 2040
Top = 1560
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.TextBox txtIn
Height = 285
Index = 3
Left = 1200
TabIndex = 10
Top = 1200
Width = 7575
End
Begin VB.TextBox txtIn
Height = 285
Index = 1
Left = 1200
TabIndex = 4
Top = 480
Width = 7575
End
Begin VB.CommandButton cmdGo
Caption = "Go"
Height = 375
Left = 7440
TabIndex = 13
Top = 1920
Width = 855
End
Begin VB.TextBox txtIn
Height = 285
Index = 2
Left = 1200
TabIndex = 7
Top = 840
Width = 7575
End
Begin VB.TextBox txtIn
Height = 285
Index = 0
Left = 1200
TabIndex = 1
Top = 120
Width = 7575
End
Begin VB.Label lbl
Caption = "HH&T To Add"
Height = 255
Index = 3
Left = 120
TabIndex = 9
Top = 1200
Width = 1095
End
Begin VB.Label lbl
Caption = "&Output CAB"
Height = 255
Index = 1
Left = 120
TabIndex = 3
Top = 480
Width = 855
End
Begin VB.Label lbl
Caption = "&SubSite XML"
Height = 255
Index = 2
Left = 120
TabIndex = 6
Top = 840
Width = 1095
End
Begin VB.Label lbl
Caption = "&Input CAB"
Height = 255
Index = 0
Left = 120
TabIndex = 0
Top = 120
Width = 855
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
' Make sure that these letters correspond to the Alt key combinations.
Private Const OPT_CAB_IN_C As String = "i"
Private Const OPT_CAB_OUT_C As String = "o"
Private Const OPT_SS_XML_C As String = "s"
Private Const OPT_HHT_C As String = "t"
Private Const OPT_POPULATE_C As String = "p"
Private Const OPT_CLOSE_ON_WARNING_C As String = "qw"
Private Const OPT_CLOSE_ALWAYS_C As String = "qa"
Private Const OPT_HELP_C As String = "h,?,help"
Private Enum INPUT_INDEX_E
II_CAB_IN_E = 0
II_CAB_OUT_E = 1
II_SS_XML_E = 2
II_HHT_E = 3
End Enum
Private Const MAX_INPUT_INDEX_C As Long = 3
Private p_strSeparator As String
Private p_blnWarning As Boolean
Private p_blnError As Boolean
Private p_clsSizer As Sizer
Private Sub p_DisplayHelp()
Dim str As String
str = "Usage: " & vbCrLf & vbCrLf & _
App.EXEName & " /i /o