Board index » delphi » Is there any pascal code that can open zip files ?

Is there any pascal code that can open zip files ?

What I need is a way to open zip files inside a pascal program then open
the zip files withen them.  It needs to work in dos 16 bit protected
mode. I'm not talking about a dos shell call to a zip program.

Thanks

 

Re:Is there any pascal code that can open zip files ?


Quote
>What I need is a way to open zip files inside a pascal program then open
>the zip files withen them.  It needs to work in dos 16 bit protected
>mode. I'm not talking about a dos shell call to a zip program.

You may find what you need in the SWAG archives, in the file 'ARCHIVES.SWG'

James

Re:Is there any pascal code that can open zip files ?


Quote
Gdt876 <gdt...@aol.comhello> wrote:
> >What I need is a way to open zip files inside a pascal program then open
> >the zip files withen them.  It needs to work in dos 16 bit protected
> >mode. I'm not talking about a dos shell call to a zip program.
> You may find what you need in the SWAG archives, in the file 'ARCHIVES.SWG'

 327448 Mar 6 1997 ftp://garbo.uwasa.fi/pc/turbopas/swag.zip
 swag.zip SWAG Reader + Information Files, SourceWare Archival Group

 629664 Mar 5 1997 ftp://garbo.uwasa.fi/pc/turbopas/swaga-c.zip
 swaga-c.zip SWAG Complete TP Code Package 1/5, all data upto 2/97

 2181787 Mar 5 1997 ftp://garbo.uwasa.fi/pc/turbopas/swagd-f.zip
 swagd-f.zip SWAG Complete TP Code Package 2/5, all data upto 2/97

 2119743 Mar 5 1997 ftp://garbo.uwasa.fi/pc/turbopas/swagg-m.zip
 swagg-m.zip SWAG Complete TP Code Package 3/5, all data upto 2/97

 593247 Mar 5 1997 ftp://garbo.uwasa.fi/pc/turbopas/swagn-r.zip
 swagn-r.zip SWAG Complete TP Code Package 4/5, all data upto 2/97

 1592647 Mar 5 1997 ftp://garbo.uwasa.fi/pc/turbopas/swags-z.zip
 swags-z.zip SWAG Complete TP Code Package 5/5, all data upto 2/97

 1300283 May 31 1997 ftp://garbo.uwasa.fi/pc/turbopas/swag9705.zip
 swag9705.zip SWAG: A huge library of PD Turbo Pascal code, 5/97 update

 1356977 Aug 31 1997 ftp://garbo.uwasa.fi/pc/turbopas/swag9708.zip
 swag9708.zip SWAG: A huge library of PD Turbo Pascal code, 8/97 update

 1263280 Jan 2 1998 ftp://garbo.uwasa.fi/pc/turbopas/swag9711.zip
 swag9711.zip SWAG: A huge library of PD Turbo Pascal code, 11/97 update

There also is C source code somewhere in

 247148 Nov 29 1998 ftp://garbo.uwasa.fi/pc/arcers/unz540x3.exe
 unz540x3.exe Info-ZIP's self-extracting unzipper (with 386 version)

 308785 Dec 24 1999 ftp://garbo.uwasa.fi/pc/arcers/zip23x.zip
 zip23x.zip Info-ZIP's portable MS-DOS zipper (pkzip 2.04 compatible)

 362827 Dec 24 1999 ftp://garbo.uwasa.fi/pc/arcers/zcr23x.zip
 zcr23x.zip Info-ZIP's zip MS-DOS executables with encryption support

 525840 Sep 1 1994 ftp://garbo.uwasa.fi/unix/arcers/unzip512.tar.Z
 unzip512.tar.Z Info-ZIP's UnZip, portable C source code

 839157 May 31 1997 ftp://garbo.uwasa.fi/unix/arcers/unzip531.zip
 unzip531.zip Info-ZIP's portable unzipper sources (Unix, Dos,...)

 1822 Jun 20 1995 ftp://garbo.uwasa.fi/unix/arcers/unzmake.inf
 unzmake.inf Making Info-ZIP's UnZip operational, example by T.Salmi

 304911 Sep 23 1993 ftp://garbo.uwasa.fi/unix/arcers/zip201.tar.Z
 zip201.tar.Z Info-ZIP's portable zipper (Unix,VMS,..), 2.04 compatible

 609860 Nov 4 1997 ftp://garbo.uwasa.fi/unix/arcers/zip22.zip
 zip22.zip Info-ZIP's portable zipper (Unix,VMS,..), 2.04 compatible

 1779 Sep 3 1994 ftp://garbo.uwasa.fi/unix/arcers/zipmake.inf
 zipmake.inf Making Info-ZIP's Zip operational, example by T.Salmi

   All the best, Timo

--
Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance  ; University of Vaasa
mailto:t...@uwasa.fi <http://www.uwasa.fi/~ts/>  ; FIN-65101,  Finland
Timo's  FAQ  materials  at   http://www.uwasa.fi/~ts/http/tsfaq.html

Re:Is there any pascal code that can open zip files ?


Quote
Timo Salmi wrote:

> Gdt876 <gdt...@aol.comhello> wrote:
> > >What I need is a way to open zip files inside a pascal program then open
> > >the zip files withen them.  It needs to work in dos 16 bit protected
> > >mode. I'm not talking about a dos shell call to a zip program.

> > You may find what you need in the SWAG archives, in the file 'ARCHIVES.SWG'

>  327448 Mar 6 1997 ftp://garbo.uwasa.fi/pc/turbopas/swag.zip
>  swag.zip SWAG Reader + Information Files, SourceWare Archival Group

... snip more references

I am not familiar with those, which are doubtless non-portable
Turbo code which can probably be adapted, but in general pure LZ
expansion is a pretty simple thing (compression is not). When
things are further compressed, such as the LHARC algorithms which
use further adaptive huffman compression, things are more
complex.  About 10 years ago I published a purely standard Pascal
version of the LHARC compress/decompress mechanism.  I have no
idea where you could find it today.

Timo's advice to look at the more recent C code is probably the
best move, since such code is much more likely to adhere to
standards and is thus more easily translated.

--
Chuck F (cbfalco...@yahoo.com) (cbfalco...@XXXXworldnet.att.net)
   Available for consulting/temporary embedded and systems.
   (Remove "XXXX" from reply address. yahoo works unmodified)
   mailto:u...@ftc.gov  (for spambots to harvest)

Re:Is there any pascal code that can open zip files ?


Quote
In article <3C54D236.5ABBC...@yahoo.com>, CBFalconer wrote:
> Timo Salmi wrote:

>> Gdt876 <gdt...@aol.comhello> wrote:
>> > >What I need is a way to open zip files inside a pascal program then open
>> > >the zip files withen them.  It needs to work in dos 16 bit protected
>> > >mode. I'm not talking about a dos shell call to a zip program.

>> > You may find what you need in the SWAG archives, in the file 'ARCHIVES.SWG'

>>  327448 Mar 6 1997 ftp://garbo.uwasa.fi/pc/turbopas/swag.zip
>>  swag.zip SWAG Reader + Information Files, SourceWare Archival Group

> ... snip more references

> I am not familiar with those, which are doubtless non-portable
> Turbo code which can probably be adapted, but in general pure LZ
> expansion is a pretty simple thing (compression is not). When
> things are further compressed, such as the LHARC algorithms which
> use further adaptive huffman compression, things are more
> complex.  About 10 years ago I published a purely standard Pascal
> version of the LHARC compress/decompress mechanism.  I have no
> idea where you could find it today.

> Timo's advice to look at the more recent C code is probably the
> best move, since such code is much more likely to adhere to
> standards and is thus more easily translated.

For zipping: yes, for unzip only: there must be quite enough a unzip
variants, both 32-bit clean ones (GPC, FPC) and 16-bit ones. (TP), and C
shouldn't be necessary IMHO.

Even porting a 32-bit version back to TP would be less work than porting the
C code.

I make the difference between 32-bit and 16-bit, because the e.g. lzh code
in SWAG turned out to use the 16-bit overflow. That particular variable was
used as index in an array.

Other Threads