home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form VersionStamperSample
- BorderStyle = 1 'Fixed Single
- Caption = "VersionStamper Sample"
- ClientHeight = 5460
- ClientLeft = 2160
- ClientTop = 1455
- ClientWidth = 4560
- Height = 5865
- Left = 2100
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 5460
- ScaleWidth = 4560
- Top = 1110
- Width = 4680
- Begin VB.CommandButton Command2
- Caption = "&Verify Files"
- Height = 525
- Left = 120
- TabIndex = 5
- Top = 4890
- Width = 1245
- End
- Begin VB.CommandButton Command1
- Caption = "E&xit"
- Height = 525
- Left = 3210
- TabIndex = 4
- Top = 4890
- Width = 1245
- End
- Begin VB.Label Label2
- Caption = "You may run this example only within the Visual Basic environment."
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H000000FF&
- Height = 495
- Left = 660
- TabIndex = 7
- Top = 4320
- Width = 3285
- End
- Begin VB.Label Label1
- Caption = "This sample project uses some invalid file version, date, and size in order to show the conflict reports."
- Height = 405
- Index = 4
- Left = 150
- TabIndex = 6
- Top = 3810
- Width = 4275
- End
- Begin VB.Label Label1
- Caption = $"VerSamp.frx":0000
- Height = 1245
- Index = 3
- Left = 150
- TabIndex = 3
- Top = 2460
- Width = 4275
- End
- Begin VB.Label Label1
- Caption = $"VerSamp.frx":0136
- Height = 1005
- Index = 2
- Left = 150
- TabIndex = 2
- Top = 1350
- Width = 4275
- End
- Begin VerstampLibDemoCtl.VersionStampDemo VersionStampDemo1
- Left = 2040
- Top = 4920
- _Version = 262144
- _ExtentX = 847
- _ExtentY = 847
- _StockProps = 0
- SelectFiles = "VerSamp.frx":024E
- SelectFiles32 = "VerSamp.frx":0264
- VerifyMode = 0
- ReadPropErrors = 0 'False
- Slave = 0 'False
- Delay = 0 'False
- FileFilterExt = ""
- OtherPaths = ""
- PathFilter = 6
- FileFilter = 3
- End
- Begin VB.Label Label1
- Caption = "You start by adding the VersionStamper demo control to your project, then add the VerVrfy.bas, VerVrfy2.frm and English.bas files."
- Height = 615
- Index = 1
- Left = 150
- TabIndex = 1
- Top = 630
- Width = 4275
- End
- Begin VB.Label Label1
- Caption = "Here is an example on how to use the VersionStamper demo control to check for file conflicts on the current system."
- Height = 435
- Index = 0
- Left = 150
- TabIndex = 0
- Top = 90
- Width = 4275
- End
- Attribute VB_Name = "VersionStamperSample"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- Unload Me
- End Sub
- Private Sub Command2_Click()
- ' Enter name of your custom application here
- FileToCheck$ = App.Path
- ' We append a backslash only if one isn't present - just in case project is in root
- If Right$(FileToCheck$, 1) <> "\" Then FileToCheck$ = FileToCheck$ & "\"
- FileToCheck$ = FileToCheck$ & "VerSamp.exe"
- Load VerVrfy2 ' This starts the verification
- If ConflictFilesFound% Then
- VerVrfy2.Show 1
- Else
- Unload VerVrfy2
- End If
- End Sub
-