亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? xzipdemo.bas

?? 前幾天看到有人在論壇上尋找壓縮代碼
?? BAS
字號:
Attribute VB_Name = "XZIPDEMO1"
Option Explicit

' Variable to communicate to the ExtractDialog form

Public ExtractDialogCanceled As Boolean

' Constants to determine characteristics of Zip Open Dialog

Public Const OpenZip = 0
Public Const NewZip = 1
Public Const TestZip = 2
Public Const FixZip = 3
Public Const DeleteZip = 4
Public Const SelectBin = 5

' Constants to determine command executed by ExecuteSelFilesCmd

Public Const SF_Delete = 0
Public Const SF_Extract = 1

' This function counts the number of files in the list of files
' of the type returned by the SelectFilesToProcess function.

Public Function CountFilesInList(ByVal FileList As String) As Integer

   Dim Count As Integer
   Dim Pos As Integer
   
   Count = 0
   For Pos = 1 To Len(FileList)
      If Mid$(FileList, Pos, 1) = Chr(0) Then Count = Count + 1
   Next Pos
   
   If Count = 0 Then Count = 1
   
   CountFilesInList = Count

End Function


' This function takes a list of files of the type that is returned by
' the SelectFilesToProcess function, and returns a single file (with
' pathname).

Public Function GetFileFromList(ByVal FileList As String, FileNumber As Integer) As String

   Dim Pos As Integer
   Dim Count As Integer
   Dim FNStart As Integer
   Dim FNLen As Integer
   Dim Path As String

   If InStr(FileList, Chr(0)) = 0 Then
      GetFileFromList = FileList
   Else
      Count = 0
      Path = Left$(FileList, InStr(FileList, Chr(0)) - 1)
      If Right$(Path, 1) <> "\" Then Path = Path + "\"
      FileList = FileList + Chr(0) 'Addition de Chr(0) a la place de ""
      For Pos = 1 To Len(FileList)
         If Mid$(FileList, Pos, 1) = Chr(0) Then
            Count = Count + 1
            If Count = FileNumber Then FNStart = Pos + 1
            If Count = (FileNumber + 1) Then
               FNLen = Pos - FNStart
               Exit For
            End If
         End If
      Next Pos
      GetFileFromList = Path + Mid$(FileList, FNStart, FNLen)
   End If

End Function

' This is a generic error handling procedure for the Xceed Zip OCX.
' It opens a message box containing a brief description of an
' error that has occured when manipulating Zip files.
'
' Pass the return code from any method (like CmdAdd, CmdExtract...)
' in the ErrorCode parameter, and one word describing the current
' operation in the DoingWhat parameter.
'
Public Sub HandleError(ErrorCode As Integer, DoingWhat As String)

   Dim EDesc    As String     ' Error description text
   Dim InfoOnly As Integer    ' False=Error, True=Warning

   EDesc = "" ' If this stays empty, we will not show a MsgBox
   InfoOnly = False

   If ErrorCode > XcdSuccess Then
    
      Select Case ErrorCode
         Case XcdWarningGeneral, XcdWarningNoZipFile, XcdErrorNothingToDo
            Rem Do not show a MsgBox for these codes
         Case XcdWarningEmptyZipFile
            EDesc = "The Zip file is empty."
            InfoOnly = True
         Case XcdWarningFilesSkipped
            EDesc = "Some files were skipped while " + DoingWhat + "."
            InfoOnly = True
         Case XcdErrorUserAbort
            EDesc = "The " + DoingWhat + " operation was aborted."
            InfoOnly = True
         Case XcdErrorNoZipFile
            EDesc = "Could not find the archive file."
         Case XcdErrorEOF, XcdErrorZipStruct
            EDesc = "The archive file is corrupted. Try using the Fix option on it."
         Case XcdErrorMemory
            EDesc = "Ran out of memory while " + DoingWhat + "."
         Case XcdErrorDiskFull
            If frmMain.ZipMain.MultidiskMode Then
               EDesc = "A full disk was inserted instead of an empty one."
            Else
               EDesc = "Disk full while " + DoingWhat + "."
            End If
         Case XcdErrorTestFailed
            EDesc = "Test failed - errors in the archive."
         Case XcdErrorZeroTested
            EDesc = "No files ended up being tested in the archive."
         Case XcdErrorTempFile
            EDesc = "Problem with the temporary file."
         Case XcdErrorLatest
            EDesc = "Could not update the Zip archive date. Archive only contains directories or is empty."
         Case XcdErrorLibInUse
            EDesc = "Another application is currently performing a similar task. Wait until the other application has completed its operation."
         Case XcdErrorParentDir
            EDesc = "Attempt to remove parent directory."
         Case XcdErrorDOSError
            EDesc = "Read/Write error with the Zip file or one of the files to process."
         Case XcdErrorNameRepeat
            EDesc = "Names repeated in archive after discarding pathnames."
         Case XcdErrorMultidisk
            EDesc = "Cannot work on multiple-disk archives when not in Multidisk mode."
         Case XcdErrorWrongDisk
            EDesc = "Wrong disk was inserted too many times."
         Case XcdErrorMultiDiskBadCall
            EDesc = "Operation not supported for Multidisk Zip archives."
         Case XcdErrorCantOpenBinary
            EDesc = "Could not open the self-extractor binary."
         Case XcdErrorCantOpenSFXConfig
            EDesc = "Could not open the self-extractor configuration file"
         Case XcdErrorInvalidEventParam
            EDesc = "Invalid command parameter passed to an Xceed Zip event."
         Case XcdErrorCantWriteSfx
            EDesc = "Not enough space on first disk to write self-extractor."
         Case XcdErrorRead
            EDesc = "Problem reading from file while " + DoingWhat + "."
         Case XcdErrorWrite
            EDesc = "Problem writing to file while " + DoingWhat + "."
         Case XcdErrorCantCreateFile
            EDesc = "Problem creating file while " + DoingWhat + "."
         Case XcdErrorBinaryVersion
            EDesc = "Invalid self-extractor binary version."
         Case XcdErrorNotLicensed
            EDesc = "This application was created with an unlicensed copy of the " + _
                    "Xceed Zip component. It will only run in design mode."
         Case XcdErrorCantCreateDir
            EDesc = "Problem creating destination directory while " + DoingWhat + "."
         Case XcdErrorBadCall
            EDesc = "Invalid property settings. Check your code."
         Case Else
            EDesc = "An error occured while " + DoingWhat + " the specified files."
      End Select

   End If

   If Len(EDesc) > 0 Then
      If InfoOnly Then
         MsgBox EDesc, vbExclamation      ' A warning
      Else
         MsgBox EDesc, vbCritical         ' An error
      End If
   End If

End Sub

'ODIODI
' This function opens a dialog and lets the user select multiple
' files to be operated on.
'
' This function will return the full path and filename of each
' and every selected file, all concatenated in one big string.
' If the Cancel button was used, then the function will return
' an empty string.
'
' Note: The dialog used is limited to 255 characters total for
' the entire file list string. If too many files are selected,
' the file list will be cut and "file not found" errors will occur.
'
Public Function SelectFilesToProcess(Title As String) As String

   With frmMain.dlgSelectFiles
      .CancelError = False
      .FileName = ""

      .Flags = cdlOFNFileMustExist + cdlOFNNoChangeDir + cdlOFNHideReadOnly + cdlOFNExplorer + cdlOFNAllowMultiselect + cdlOFNLongNames

      .DialogTitle = Title
      .ShowOpen

      If Len(.FileName) > 0 Then
         SelectFilesToProcess = .FileName
      End If
   End With
   
End Function
'ODIODI
' This function takes a string containing a path and tries to make it
' fit into a given control's display space (i.e: Panel and label captions.)
' Note: It considers a '\' to indicate the presence of a path in the string.
'
Function ShortenPathForDisplay(aString As String, aForm As Object, Width As Integer) As String

  Dim TempString As String
  Dim Pos As Long
  Dim Pos2 As Long
    
  TempString = aString
  
  While aForm.TextWidth(TempString) > Width
    
    Pos = InStr(1, TempString, "...")
    If Pos > 0 Then
      TempString = Left$(TempString, Pos - 1) + Right$(TempString, Len(TempString) - Pos - 3)
    End If
    
    Pos = InStr(3, TempString, "\")
    Pos2 = InStr(Pos + 1, TempString, "\")
    
    If Pos2 = 0 Then
      ShortenPathForDisplay = Left$(TempString, Pos) + "..." + Right$(TempString, Len(TempString) - Pos + 1)
      Exit Function
    End If
    
    TempString = Left$(TempString, Pos) + "..." + Right$(TempString, Len(TempString) - Pos2 + 1)
    
  Wend
  ShortenPathForDisplay = TempString
End Function

' This function opens up a 'Open File' Dialog to have the
' user select a Zip file. Depending on the DialogType parameter,
' the behavior of the dialog is different.
'
' This function will return the full path and filename of the
' selected Zip file. If the Cancel button was used, then the
' function will return an empty string.
'
Public Function SelectZipFile$(DialogType As Integer)

   With frmMain.dlgSelectZip
      
      .FileName = ""
      .Flags = cdlOFNFileMustExist + cdlOFNNoChangeDir + cdlOFNHideReadOnly
      .Filter = "Zip archives (*.zip)|*.zip|Self-extracting Zip archives (*.exe)|*.exe|All files (*.*)|*.*"
      
      Select Case DialogType
         Case OpenZip
            .DialogTitle = "Open Archive"
            .Action = 1
         Case NewZip
            .Flags = cdlOFNOverwritePrompt + cdlOFNNoChangeDir + cdlOFNHideReadOnly
            .DialogTitle = "New Archive"
            .Action = 2  ' Pretend we are saving file. A new archive is really created when Adding files.
         Case TestZip
            .DialogTitle = "Test Archive"
            .Action = 1
         Case FixZip
            .DialogTitle = "Fix Archive"
            .Action = 1
         Case DeleteZip
            .DialogTitle = "Delete Archive"
            .Action = 1
         Case SelectBin
            .FileName = ""
            .Filter = "Self-extractor binary (*.bin)|*.bin|All files (*.*)|*.*"
            .DialogTitle = "Select self-extractor binary"
            .Action = 1
      End Select

      SelectZipFile = .FileName
   End With
   
End Function


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91丨porny丨中文| 国产成人啪午夜精品网站男同| 色综合久久精品| 一区二区三区中文在线观看| 欧美在线不卡视频| 污片在线观看一区二区| 777午夜精品免费视频| 麻豆精品一区二区| 久久精品视频在线免费观看| 国产91精品欧美| 亚洲欧美另类图片小说| 欧洲一区在线观看| 美女mm1313爽爽久久久蜜臀| 久久毛片高清国产| 91农村精品一区二区在线| 亚洲午夜一区二区| 欧美不卡一区二区三区四区| 成人精品小蝌蚪| 亚洲激情网站免费观看| 91精品国产综合久久精品| 另类成人小视频在线| 国产欧美一区二区三区网站| 91美女福利视频| 日韩精品每日更新| 国产精品拍天天在线| 欧美三级电影在线看| 韩国理伦片一区二区三区在线播放| 国产欧美精品区一区二区三区| 91香蕉国产在线观看软件| 日一区二区三区| 中文字幕第一区综合| 欧美日韩视频在线观看一区二区三区 | 国产一区二区三区四区五区入口 | 亚洲欧美另类图片小说| 欧美一区二区三区成人| 成人教育av在线| 奇米色777欧美一区二区| 中文字幕欧美激情一区| 91麻豆精品国产91久久久| 成人av在线网站| 捆绑变态av一区二区三区| 亚洲精品日韩专区silk| 久久久久久久久99精品| 欧美午夜不卡视频| 99久久er热在这里只有精品66| 男人的j进女人的j一区| 洋洋成人永久网站入口| 欧美激情资源网| 日韩精品中文字幕在线不卡尤物| 91美女在线观看| 国产精品1区二区.| 免费观看久久久4p| 午夜电影网一区| 亚洲线精品一区二区三区八戒| 国产精品网站在线播放| 亚洲精品在线一区二区| 91精品欧美福利在线观看| 在线观看日韩国产| 99vv1com这只有精品| 国产成人免费视频精品含羞草妖精| 日韩中文字幕av电影| 亚洲女同一区二区| 综合久久给合久久狠狠狠97色| 久久久久国产精品厨房| 欧美mv和日韩mv的网站| 91精品一区二区三区久久久久久| 91国偷自产一区二区使用方法| 成人中文字幕电影| 国产宾馆实践打屁股91| 国产乱对白刺激视频不卡| 激情偷乱视频一区二区三区| 免费高清视频精品| 麻豆精品视频在线观看| 蜜桃精品在线观看| 激情五月婷婷综合网| 久久9热精品视频| 精品一区二区精品| 国内精品第一页| 国产一区二区三区精品欧美日韩一区二区三区 | 国产欧美日韩视频一区二区| 欧美大片一区二区三区| 日韩欧美精品在线视频| 日韩欧美黄色影院| 欧美不卡激情三级在线观看| 亚洲精品在线电影| 国产精品萝li| 亚洲乱码一区二区三区在线观看| 亚洲欧美精品午睡沙发| 亚洲另类在线视频| 午夜精品免费在线| 理论片日本一区| 国产精品小仙女| 菠萝蜜视频在线观看一区| 不卡视频一二三| 日本精品视频一区二区| 欧美视频一区二区在线观看| 538在线一区二区精品国产| 日韩一区二区三区电影在线观看 | 狠狠色狠狠色合久久伊人| 国产精品影音先锋| 北条麻妃一区二区三区| 色综合久久久久网| 日韩欧美中文一区二区| 国产欧美一区二区三区鸳鸯浴| 亚洲视频一区在线观看| 天天操天天干天天综合网| 免播放器亚洲一区| 国产不卡一区视频| 欧亚洲嫩模精品一区三区| 欧美一卡在线观看| 国产精品无人区| 亚洲成在人线在线播放| 国产精选一区二区三区| 色综合久久久久久久久久久| 日韩一区二区麻豆国产| 欧美高清在线视频| 日韩av网站在线观看| 成人免费视频免费观看| 欧美狂野另类xxxxoooo| 国产亚洲成aⅴ人片在线观看| 亚洲激情在线播放| 狠狠色狠狠色综合系列| 在线观看视频一区二区| 亚洲精品一区二区精华| 亚洲精品高清在线观看| 韩国av一区二区三区在线观看| 色婷婷av一区二区| 久久色在线观看| 午夜精品一区在线观看| 成人高清视频免费观看| 日韩一区二区精品葵司在线| 亚洲欧美日韩国产中文在线| 久久国产乱子精品免费女| 色综合天天综合狠狠| 国产偷国产偷精品高清尤物| 午夜欧美2019年伦理| 成人免费视频一区| 精品第一国产综合精品aⅴ| 亚洲一区二区视频| 成人久久视频在线观看| 久久综合色8888| 麻豆久久一区二区| 欧美日本在线视频| 亚洲欧美日韩久久精品| 成人一区二区三区在线观看| 欧美一二三区精品| 亚洲电影视频在线| 99久免费精品视频在线观看 | 日韩精品在线网站| 日韩中文字幕av电影| 欧美一a一片一级一片| 国产精品高清亚洲| 国产精品亚洲一区二区三区妖精 | 国产一区二区日韩精品| 日韩一卡二卡三卡四卡| 日韩av成人高清| 欧美午夜片在线观看| 中文字幕一区二区在线观看| 国产成人啪午夜精品网站男同| 欧美精品一区二区三区在线播放 | 久久尤物电影视频在线观看| 日本中文字幕一区二区视频 | 99国产精品久久久久久久久久 | 91麻豆国产精品久久| 国产精品毛片a∨一区二区三区| 国产精品白丝jk黑袜喷水| 26uuu色噜噜精品一区二区| 精品一区二区三区免费视频| 日韩欧美国产三级| 精品一区二区三区免费观看| 久久综合九色综合欧美亚洲| 国产一区不卡在线| 欧美激情一区二区三区蜜桃视频| 成人免费精品视频| 国产精品福利一区二区三区| 成+人+亚洲+综合天堂| 亚洲欧美成人一区二区三区| 91成人在线观看喷潮| 亚洲一区二区中文在线| 欧美精品在线观看播放| 另类中文字幕网| 国产午夜精品久久久久久免费视| 国产宾馆实践打屁股91| 综合网在线视频| 欧美日韩中文字幕一区| 日韩影视精彩在线| 精品国产不卡一区二区三区| 精品综合免费视频观看| 欧美激情一区二区三区全黄| 色噜噜狠狠色综合中国| 日韩国产在线一| 久久精品亚洲麻豆av一区二区 | 国产91露脸合集magnet| 国产精品久久久一本精品| 在线免费不卡电影| 麻豆成人91精品二区三区| 国产欧美视频在线观看| 欧美主播一区二区三区| 免费成人av在线播放| 国产精品久久久久久久久久久免费看|