zip files and unzip files

Post Reply
hag
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California
Contact:

zip files and unzip files

Post by hag »

A major part of my program is users saving data to zip files. Then unziping back into the program. Never a problem in 16 bit version. Code doesn't work in 32 bit.

Looked at testzip.prg and testuzip.prg. Not working. Funcs don't exist.

Need help here....THanks in advance.

Harvey
Thank you
Harvey
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Post by hua »

http://forums.fivetechsoft.com/viewtopi ... ight=hbzip

You can search this forum for hbzip if you wish to read more similar posts
Colin Wisbey
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am

Post by Colin Wisbey »

I use xHarbour's HB_ZIPFILE().

In its simplest form use:-
HB_ZIPFILE( cZipFile, aFiles2Zip)

Full spec is :

HB_ZIPFILE( <cFile>, <cFileToCompress> | <aFiles>, <nLevel>,;
<bBlock>, <lOverWrite>, <cPassword>, <lWithPath>,; <lWithDrive>, ; <pFileProgress> ) ---> lCompress

For unziping:

HB_UNZIPFILE( <cZipFile>, <bBlock>, <lWithPath>,;
<cPassWord>, <cPath>, <cFile> | <aFile>, <pFileProgress> ) ---> lCompress

Note that you must link HBZIP.lib and ZLIB.lib.

Works really well for me.

Colin
hag
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California
Contact:

Post by hag »

Thanks for the response. I'm using harbour. Where do I get the HBZIP.LIB and ZLIB.lib for hourbor? Not in the harbour files.
Thank you
Harvey
Post Reply