473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

zip32.dll & unzip32.dll - revisited (src included) - unzip32.zip (0/1)

na
Was using Info-Zip dll's in VB6 and am trying convert/upgrade them for
use them vb.net 2002.

I've attached the code (2 zipped .vb's), which were converted from
VB6.

If I can get this working, I'll post it back to the net so others can
use it.

(yes I am aware of the ICSharpCode.SharpZipLib.dll, and others, but I
want to use this for now, please and thanks)

Currently I get a Out of Memory Exception in VBUnzip32 in the line >>
Call UzpVersion2(UZVER)

here is the sample call:
msbUnzip("F:\ExtractTest.zip", "F:\ExtractTest_Delete")

here is the sample code:
'-new 8/27/00 for unzipping
Private Sub msbUnzip(ByVal sZipFName$, ByVal sExtractRoot$)
Dim MsgTmp As String, goUnzip as clsUnzip

' Cls
' MsgOut.Text = ""
If goUnzip Is Nothing Then goUnzip = New clsUnzip()

With goUnzip

'-- Init Global Message Variables
.gsZipInfo = ""
.giZipNumber = 0 ' Holds The Number Of Zip Files

'-- Select UNZIP32.DLL Options - Change As Required!
.giPromptOverWrite = euPromptOverWrite.euPOWTrue ' 1 = Prompt
To Overwrite
.giOverWriteFiles = euOverWriteFiles.euOWFLeaveAlone ' 1 =
Always Overwrite Files
.giDisplayComment = euDisplayComment.euDCNoComment ' 1 =
Display comment ONLY!!!

'-- Change The Next Line To Do The Actual Unzip!
.giExtractList = euExtractList.euEListContents ' 1 =
List Contents Of Zip 0 = Extract
.giHonorDirectories = euHonorDirectories.euHDDoDirs ' 1 =
Honour Zip Directories

'-- Select Filenames If Required
'-- Or Just Select All Files
.gsZipNames(0) = vbNullString
.giNumberFiles = 0

'-- Select Filenames To Exclude From Processing
' Note UNIX convention!
' vbxnames.s(0) = "VBSYX/VBSYX.MID"
' vbxnames.s(1) = "VBSYX/VBSYX.SYX"
' numx = 2

'-- Or Just Select All Files
.gsExcludeNames(0) = vbNullString
.giNumberXFiles = 0

'-- Change The Next 2 Lines As Required!
'-- These Should Point To Your Directory
.gsZipFileName = sZipFName 'ZipFName.Text
.gsExtractDir = sExtractRoot 'ExtractRoot.Text
If .gsExtractDir <> "" Then .giExtractList = 0 ' unzip if dir
specified
'-- Let's Go And Unzip Them!
Call .VBUnZip32()

'-- Tell The User What Happened
If Len(.gsZipMessage) > 0 Then
MsgTmp = .gsZipMessage
End If

'-- Display Zip File Information.
If Len(.gsZipInfo) > 0 Then
MsgTmp = MsgTmp & vbNewLine & "uZipInfo is:" & vbNewLine &
..gsZipInfo
End If

'-- Display The Number Of Extracted Files!
If .giZipNumber > 0 Then
MsgTmp = MsgTmp & vbNewLine & "Number Of Files: " &
Str(.giZipNumber)
End If

End With
End Sub

Nov 21 '05 #1
0 3267

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dariusz | last post by:
I have a problem with a call a Javascript "window.open()" function which is executed as part of a PHP file when a user clicks on an thumbnail image. The PHP is executed which passes some variables...
1
by: Waguih Boctor | last post by:
Hi, I have a number of ASP pages where some JPGs and GIFs are displaying in the browser and some are not. I have included an excerpt from the HTML below. In this example, the gif file at the...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
4
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know...
1
by: Oliver | last post by:
Hello ! Does anyone know where to get the wrapper functions in C# for, the unzip32.dll (Info-Zip Library)! I am having problems writing my own wrapper for the user functions of the dll. ...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
1
by: DILA | last post by:
Hi, I have included an embedded Real Player and an embedded Quick Time Player for streaming videos, in my web pages. I'm interested in searching for a method or a script to disable the...
3
by: homec | last post by:
Hi, I have included an embedded Real Player and an embedded Quick Time Player for streaming videos, in my web pages. I'm interested in searching for a method or a script to disable the ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.