Discussion:
Zip files
(too old to reply)
Lou
2006-08-29 18:14:35 UTC
Permalink
What API do I use to create a .zip file

-Lou
Tim Rude
2006-08-29 20:45:45 UTC
Permalink
Have a look here:

http://www.vbaccelerator.com/home/VB/Code/Libraries/Compression/Introduction_to_the_Info-ZIP_Libraries/article.asp
--
Tim Rude

***@NOSPAM.hotmail.com
(remove NOSPAM. for correct email address)
Post by Lou
What API do I use to create a .zip file
-Lou
MikeD
2006-08-31 02:53:22 UTC
Permalink
Post by Lou
What API do I use to create a .zip file
None. Windows doesn't have a Win32API function for zipping files. WinXP
has an ActiveX DLL for .zip files (it's named zipfldr.dll), but it only
decompresses (AFAIK). But, Windows does have functions for compressing files
using other algorithms. Chances are, though, that you'll need to use a
3rd-party component, which may or may not be free.
--
Mike
Microsoft MVP Visual Basic
Sinna
2006-08-31 06:12:27 UTC
Permalink
Post by Lou
What API do I use to create a .zip file
-Lou
Search for zlibwapi.dll. That ActiveX Library suits perfectly for me.


Sinna
Mike D Sutton
2006-08-31 13:38:03 UTC
Permalink
Post by Sinna
Search for zlibwapi.dll. That ActiveX Library suits perfectly for me.
zlibwapi.dll is a standard DLL, not ActiveX..
You can grab a copy of it here:
http://www.winimage.com/zLibDll/
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: ***@mvps.org
WWW: Http://EDais.mvps.org/
Sinna
2006-09-01 06:10:54 UTC
Permalink
Post by Mike D Sutton
Post by Sinna
Search for zlibwapi.dll. That ActiveX Library suits perfectly for me.
zlibwapi.dll is a standard DLL, not ActiveX..
http://www.winimage.com/zLibDll/
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
WWW: Http://EDais.mvps.org/
Indeed, I was mixing up with SAWZip...

zlibwapi.dll *is* a standard DLL, but with the stdcall convention (so
usable in VB)


Sinna
Mike D Sutton
2006-09-01 10:31:45 UTC
Permalink
zlibwapi.dll *is* a standard DLL, but with the stdcall convention (so usable in VB)
Yeah, if you search for it on Google my article for using it in VB is ~5'th on the list ;)
It doesn't cover the zip calls though, only the ZLib compression/decompression.

Mike


- Microsoft Visual Basic MVP -
E-Mail: ***@mvps.org
WWW: Http://EDais.mvps.org/
Homer J Simpson
2006-08-31 16:38:23 UTC
Permalink
Post by Lou
What API do I use to create a .zip file
There is a public project which handles zipping and unzipping support for
VB6.
Thorsten Albers
2006-08-31 17:39:14 UTC
Permalink
Post by Homer J Simpson
There is a public project which handles zipping and unzipping support for
VB6.
That's nice. And where? On Ursa Minor Beta?

*SCNR*
--
----------------------------------------------------------------------
THORSTEN ALBERS Universität Freiburg
albers@
uni-freiburg.de
----------------------------------------------------------------------
Homer J Simpson
2006-08-31 21:09:50 UTC
Permalink
Post by Thorsten Albers
Post by Homer J Simpson
There is a public project which handles zipping and unzipping support for
VB6.
That's nice. And where? On Ursa Minor Beta?
Maybe. I have a book which references it but I can't find it right now.
Still, Google is your friend.
Thorsten Albers
2006-08-31 23:21:37 UTC
Permalink
Post by Homer J Simpson
Post by Homer J Simpson
There is a public project which handles zipping and unzipping support for
VB6.
Maybe. I have a book which references it but I can't find it right now.
Still, Google is your friend.
Hmm, the keywords provided are "public", "project", "vb6" and "zip" or
"zipping". Did you try these keywords? More than 300.000 hits - hard work
to do.
What I mean: If your answer should be of help for "Lou", it IMHO should be
a bit more precis.
--
----------------------------------------------------------------------
THORSTEN ALBERS Universität Freiburg
albers@
uni-freiburg.de
----------------------------------------------------------------------
Homer J Simpson
2006-08-31 23:37:26 UTC
Permalink
Post by Thorsten Albers
Hmm, the keywords provided are "public", "project", "vb6" and "zip" or
"zipping". Did you try these keywords? More than 300.000 hits - hard work
to do.
What I mean: If your answer should be of help for "Lou", it IMHO should be
a bit more precis.
Piss off. I told him what I know. What exactly was YOUR contribution?
Thorsten Albers
2006-09-01 01:33:24 UTC
Permalink
Post by Homer J Simpson
Piss off. I told him what I know. What exactly was YOUR contribution?
And what was yours?
--
----------------------------------------------------------------------
THORSTEN ALBERS Universität Freiburg
albers@
uni-freiburg.de
----------------------------------------------------------------------
Homer J Simpson
2006-09-01 03:05:53 UTC
Permalink
Post by Thorsten Albers
And what was yours?
Try reading instead of running your mouth.
DanS
2006-08-31 22:00:39 UTC
Permalink
Post by Thorsten Albers
Post by Homer J Simpson
There is a public project which handles zipping and unzipping support for
VB6.
That's nice. And where? On Ursa Minor Beta?
*SCNR*
Could that be SAWzip ?
Sinna
2006-09-01 06:10:07 UTC
Permalink
Post by DanS
Post by Thorsten Albers
Post by Homer J Simpson
There is a public project which handles zipping and unzipping support for
VB6.
That's nice. And where? On Ursa Minor Beta?
*SCNR*
Could that be SAWzip ?
Yep, that's the one!

Sinna
DanS
2006-09-03 12:53:38 UTC
Permalink
Post by Sinna
Post by DanS
Post by Thorsten Albers
Post by Homer J Simpson
There is a public project which handles zipping and unzipping support for
VB6.
That's nice. And where? On Ursa Minor Beta?
*SCNR*
Could that be SAWzip ?
Yep, that's the one!
Sinna
I have used it in a project, and it seemed to work quite well.

This is hte one I was thinking of.....
http://users.skynet.be/saw/sawzip.htm

Oddly enough, there's a SAWzip here also, but I'm not sure if it is the
same project.....
http://www.codeproject.com/atl/sawzip.asp
Sinna
2006-09-04 06:19:47 UTC
Permalink
Post by DanS
Post by Sinna
Post by DanS
Post by Thorsten Albers
Post by Homer J Simpson
There is a public project which handles zipping and unzipping support for
VB6.
That's nice. And where? On Ursa Minor Beta?
*SCNR*
Could that be SAWzip ?
Yep, that's the one!
Sinna
I have used it in a project, and it seemed to work quite well.
This is hte one I was thinking of.....
http://users.skynet.be/saw/sawzip.htm
Oddly enough, there's a SAWzip here also, but I'm not sure if it is the
same project.....
http://www.codeproject.com/atl/sawzip.asp
Both links have the same author, but the sources on CodeProject are
quite older than those on SkyNet (CodeProject: Version 2.0, SkyNet:
Version 3.0.0.2).
I needed Version 3.x to deal with a bug. If I remember well it has
something to do with processing ZIP-files on network shares.


Sinna

mayayana
2006-08-31 23:21:57 UTC
Permalink
See here:
http://www.dogma.net/markn/articles/zlibtool/zlibtool.htm

There's a tutorial and the zlibtool download
linked from that page contains the OCX.

There's also VB code around for the
zlibwapi DLL, which uses Stdcall functions
accessible from VB, as opposed to the
normal zlib DLL. I don't have a link for that
but I've seen several examples. What I haven't
seen ( and would be interested in seeing)
is full sample code for editing files with zlibwapi.
Apparently the zlib functions are designed to
be very familiar to C programmers, in terms of
reading and writing files, so there's not much
documentation for that. And the VB sample code
I've seen has all been for the same two zlib
functions - compress and uncompress.

I also don't know whether a zlib file is actually
readable as a ZIP or only as another variant.
For zip specifically there's the info-zip DLLs.
Unfortunately, though, you need one for compress
and one for uncompress, and they're quite big
for what they do.
Post by Homer J Simpson
Post by Lou
What API do I use to create a .zip file
There is a public project which handles zipping and unzipping support for
VB6.
Loading...