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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? visual-basic.txt

?? ZIP壓縮算法源代碼,可以直接加入C++Project中編譯調用
?? TXT
字號:
See below some functions declarations for Visual Basic.

Frequently Asked Question:

Q: Each time I use the compress function I get the -5 error (not enough
   room in the output buffer).

A: Make sure that the length of the compressed buffer is passed by
   reference ("as any"), not by value ("as long"). Also check that
   before the call of compress this length is equal to the total size of
   the compressed buffer and not zero.


From: "Jon Caruana" <jon-net@usa.net>
Subject: Re: How to port zlib declares to vb?
Date: Mon, 28 Oct 1996 18:33:03 -0600

Got the answer! (I haven't had time to check this but it's what I got, and
looks correct):

He has the following routines working:
        compress
        uncompress
        gzopen
        gzwrite
        gzread
        gzclose

Declares follow: (Quoted from Carlos Rios <c_rios@sonda.cl>, in Vb4 form)

#If Win16 Then   'Use Win16 calls.
Declare Function compress Lib "ZLIB.DLL" (ByVal compr As
        String, comprLen As Any, ByVal buf As String, ByVal buflen
        As Long) As Integer
Declare Function uncompress Lib "ZLIB.DLL" (ByVal uncompr
        As String, uncomprLen As Any, ByVal compr As String, ByVal
        lcompr As Long) As Integer
Declare Function gzopen Lib "ZLIB.DLL" (ByVal filePath As
        String, ByVal mode As String) As Long
Declare Function gzread Lib "ZLIB.DLL" (ByVal file As
        Long, ByVal uncompr As String, ByVal uncomprLen As Integer)
        As Integer
Declare Function gzwrite Lib "ZLIB.DLL" (ByVal file As
        Long, ByVal uncompr As String, ByVal uncomprLen As Integer)
        As Integer
Declare Function gzclose Lib "ZLIB.DLL" (ByVal file As
        Long) As Integer
#Else
Declare Function compress Lib "ZLIB32.DLL"
        (ByVal compr As String, comprLen As Any, ByVal buf As
        String, ByVal buflen As Long) As Integer
Declare Function uncompress Lib "ZLIB32.DLL"
        (ByVal uncompr As String, uncomprLen As Any, ByVal compr As
        String, ByVal lcompr As Long) As Long
Declare Function gzopen Lib "ZLIB32.DLL"
        (ByVal file As String, ByVal mode As String) As Long
Declare Function gzread Lib "ZLIB32.DLL"
        (ByVal file As Long, ByVal uncompr As String, ByVal
        uncomprLen As Long) As Long
Declare Function gzwrite Lib "ZLIB32.DLL"
        (ByVal file As Long, ByVal uncompr As String, ByVal
        uncomprLen As Long) As Long
Declare Function gzclose Lib "ZLIB32.DLL"
        (ByVal file As Long) As Long
#End If

-Jon Caruana
jon-net@usa.net
Microsoft Sitebuilder Network Level 1 Member - HTML Writer's Guild Member


Here is another example from Michael <michael_borgsys@hotmail.com> that he
says conforms to the VB guidelines, and that solves the problem of not
knowing the uncompressed size by storing it at the end of the file:

'Calling the functions:
'bracket meaning: <parameter> [optional] {Range of possible values}
'Call subCompressFile(<path with filename to compress> [, <path with
filename to write to>, [level of compression {1..9}]])
'Call subUncompressFile(<path with filename to compress>)

Option Explicit
Private lngpvtPcnSml As Long 'Stores value for 'lngPercentSmaller'
Private Const SUCCESS As Long = 0
Private Const strFilExt As String = ".cpr"
Private Declare Function lngfncCpr Lib "zlib.dll" Alias "compress2" (ByRef
dest As Any, ByRef destLen As Any, ByRef src As Any, ByVal srcLen As Long,
ByVal level As Integer) As Long
Private Declare Function lngfncUcp Lib "zlib.dll" Alias "uncompress" (ByRef
dest As Any, ByRef destLen As Any, ByRef src As Any, ByVal srcLen As Long)
As Long

Public Sub subCompressFile(ByVal strargOriFilPth As String, Optional ByVal
strargCprFilPth As String, Optional ByVal intLvl As Integer = 9)
    Dim strCprPth As String
    Dim lngOriSiz As Long
    Dim lngCprSiz As Long
    Dim bytaryOri() As Byte
    Dim bytaryCpr() As Byte
    lngOriSiz = FileLen(strargOriFilPth)
    ReDim bytaryOri(lngOriSiz - 1)
    Open strargOriFilPth For Binary Access Read As #1
        Get #1, , bytaryOri()
    Close #1
    strCprPth = IIf(strargCprFilPth = "", strargOriFilPth, strargCprFilPth)
'Select file path and name
    strCprPth = strCprPth & IIf(Right(strCprPth, Len(strFilExt)) =
strFilExt, "", strFilExt) 'Add file extension if not exists
    lngCprSiz = (lngOriSiz * 1.01) + 12 'Compression needs temporary a bit
more space then original file size
    ReDim bytaryCpr(lngCprSiz - 1)
    If lngfncCpr(bytaryCpr(0), lngCprSiz, bytaryOri(0), lngOriSiz, intLvl) =
SUCCESS Then
        lngpvtPcnSml = (1# - (lngCprSiz / lngOriSiz)) * 100
        ReDim Preserve bytaryCpr(lngCprSiz - 1)
        Open strCprPth For Binary Access Write As #1
            Put #1, , bytaryCpr()
            Put #1, , lngOriSiz 'Add the the original size value to the end
(last 4 bytes)
        Close #1
    Else
        MsgBox "Compression error"
    End If
    Erase bytaryCpr
    Erase bytaryOri
End Sub

Public Sub subUncompressFile(ByVal strargFilPth As String)
    Dim bytaryCpr() As Byte
    Dim bytaryOri() As Byte
    Dim lngOriSiz As Long
    Dim lngCprSiz As Long
    Dim strOriPth As String
    lngCprSiz = FileLen(strargFilPth)
    ReDim bytaryCpr(lngCprSiz - 1)
    Open strargFilPth For Binary Access Read As #1
        Get #1, , bytaryCpr()
    Close #1
    'Read the original file size value:
    lngOriSiz = bytaryCpr(lngCprSiz - 1) * (2 ^ 24) _
              + bytaryCpr(lngCprSiz - 2) * (2 ^ 16) _
              + bytaryCpr(lngCprSiz - 3) * (2 ^ 8) _
              + bytaryCpr(lngCprSiz - 4)
    ReDim Preserve bytaryCpr(lngCprSiz - 5) 'Cut of the original size value
    ReDim bytaryOri(lngOriSiz - 1)
    If lngfncUcp(bytaryOri(0), lngOriSiz, bytaryCpr(0), lngCprSiz) = SUCCESS
Then
        strOriPth = Left(strargFilPth, Len(strargFilPth) - Len(strFilExt))
        Open strOriPth For Binary Access Write As #1
            Put #1, , bytaryOri()
        Close #1
    Else
        MsgBox "Uncompression error"
    End If
    Erase bytaryCpr
    Erase bytaryOri
End Sub
Public Property Get lngPercentSmaller() As Long
    lngPercentSmaller = lngpvtPcnSml
End Property

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线免费不卡电影| 亚洲精品久久7777| 日韩欧美中文一区二区| 欧美日韩国产a| 精品视频在线视频| 91精品欧美综合在线观看最新| 欧美日韩国产综合一区二区| 欧美日本乱大交xxxxx| 欧美一区二区三区系列电影| 精品入口麻豆88视频| 久久国产精品露脸对白| 亚洲电影视频在线| 午夜欧美在线一二页| 奇米综合一区二区三区精品视频| 午夜亚洲福利老司机| 午夜国产不卡在线观看视频| 日本不卡视频一二三区| 蜜臀91精品一区二区三区| 韩国av一区二区三区在线观看| 久久精品国产一区二区三区免费看 | 成人激情视频网站| 成人黄色在线视频| 色狠狠一区二区三区香蕉| 欧美亚洲一区二区三区四区| 91精品欧美福利在线观看| 欧美成人精品高清在线播放| 久久精品无码一区二区三区| 国产精品久久久久一区| 亚洲一区二三区| 青青国产91久久久久久| 久久99精品国产麻豆不卡| 国产激情视频一区二区三区欧美| av不卡一区二区三区| 欧美在线免费观看视频| 日韩精品专区在线| 成人欧美一区二区三区| 石原莉奈在线亚洲二区| 国产91丝袜在线18| 欧美日韩亚洲丝袜制服| 精品久久久久久久久久久久包黑料| 国产精品美女久久久久aⅴ国产馆| 一二三四区精品视频| 捆绑调教美女网站视频一区| 成人一级黄色片| 欧美日韩精品一区二区三区蜜桃| 久久综合九色综合97婷婷女人 | 一区二区三区加勒比av| 麻豆成人久久精品二区三区小说| 波多野结衣在线一区| 欧美人与z0zoxxxx视频| 国产嫩草影院久久久久| 石原莉奈一区二区三区在线观看 | 日韩三级免费观看| 综合色天天鬼久久鬼色| 美国av一区二区| 色综合天天综合网天天看片| 日韩欧美一卡二卡| 亚洲免费观看高清| 国产一区视频网站| 欧美午夜影院一区| 国产精品美女久久久久久久| 日韩精品欧美精品| 91在线免费播放| 久久久一区二区三区捆绑**| 亚洲国产综合色| 99久久精品99国产精品| 欧美成人三级电影在线| 亚洲小少妇裸体bbw| 成人天堂资源www在线| 欧美一级片在线| 亚洲福利视频导航| 97精品国产露脸对白| 久久精品视频免费| 久久99国产精品免费| 欧美日韩精品久久久| 亚洲日本一区二区| 成人av综合在线| 久久精品视频一区二区| 久久超级碰视频| 欧美影视一区二区三区| 中文字幕亚洲精品在线观看| 国产精品一区免费视频| 日韩欧美中文字幕公布| 香港成人在线视频| 色吧成人激情小说| 日韩理论片在线| 不卡区在线中文字幕| 国产人成一区二区三区影院| 韩国视频一区二区| 日韩精品一区二区三区视频播放| 午夜免费欧美电影| 欧美日韩一区二区在线视频| 一个色妞综合视频在线观看| 91蜜桃免费观看视频| 亚洲色欲色欲www| 91免费视频大全| 亚洲人妖av一区二区| www.66久久| 亚洲日本一区二区| 一本大道久久精品懂色aⅴ| 国产精品成人一区二区艾草 | 色综合av在线| 一区二区三区免费看视频| 99久久99久久精品免费看蜜桃| 亚洲国产精品激情在线观看| 大白屁股一区二区视频| 国产精品久久久久久久久久久免费看 | 国产亚洲婷婷免费| 国产精品亚洲专一区二区三区| 精品国产91洋老外米糕| 韩国女主播成人在线| 久久亚洲综合av| 国产一区二区三区精品欧美日韩一区二区三区 | 久久婷婷成人综合色| 国内偷窥港台综合视频在线播放| 久久综合久久综合久久综合| 国产麻豆精品一区二区| 亚洲激情自拍偷拍| 亚洲免费观看高清完整版在线观看 | 在线欧美一区二区| 亚洲一区免费在线观看| 欧美自拍偷拍午夜视频| 天堂蜜桃一区二区三区 | 亚洲一区二区精品视频| 欧美久久久久久久久中文字幕| 天天免费综合色| 26uuu精品一区二区| 成人久久视频在线观看| 亚洲美女在线一区| 欧美日韩大陆一区二区| 裸体一区二区三区| 国产欧美一区二区精品婷婷 | 亚洲欧洲精品一区二区精品久久久| 99re成人精品视频| 午夜视频一区二区| 久久久久亚洲综合| 99久久99精品久久久久久| 色综合天天性综合| 中文字幕不卡的av| 一本大道久久a久久精二百| 亚洲欧美视频在线观看| 欧美日韩亚洲综合| 精油按摩中文字幕久久| 国产精品久久看| 欧美色网站导航| 久久不见久久见中文字幕免费| 久久久91精品国产一区二区三区| av一区二区三区| 婷婷六月综合网| 久久理论电影网| 91女厕偷拍女厕偷拍高清| 男人操女人的视频在线观看欧美| 久久精品网站免费观看| 91久久精品国产91性色tv| 免费观看在线综合色| 中文字幕一区二区三区乱码在线| 在线不卡中文字幕| 91在线国产福利| 狠狠色丁香婷综合久久| 亚洲欧美另类图片小说| 精品福利视频一区二区三区| 欧美在线视频日韩| 国产盗摄视频一区二区三区| 日韩精品每日更新| 亚洲欧洲一区二区在线播放| 欧美成人女星排名| 欧美日韩黄视频| 99国产精品一区| 国产乱码精品一区二区三区五月婷 | 欧美一卡在线观看| 91在线视频免费91| 国产夫妻精品视频| 美女视频网站黄色亚洲| 亚洲一区在线播放| 国产精品久久久久久久久免费丝袜| 欧美一级专区免费大片| 日本中文字幕一区二区视频 | 91香蕉视频污| 国产一区二区三区最好精华液| 一区二区三区免费观看| 久久久久国色av免费看影院| 91精品国产欧美日韩| 不卡av免费在线观看| 丁香婷婷综合网| 亚洲精品免费播放| 日韩视频一区在线观看| 樱花影视一区二区| 69av一区二区三区| 成人av在线网| 日本vs亚洲vs韩国一区三区二区| 怡红院av一区二区三区| 欧美精品一区二区三区很污很色的| 91天堂素人约啪| 秋霞影院一区二区| 日韩电影免费在线| 亚洲日本乱码在线观看| 久久久久久久久岛国免费| 欧美va在线播放| 911国产精品| 色婷婷久久久综合中文字幕|