FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour zip files and unzip files
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
zip files and unzip files
Posted: Wed Aug 27, 2008 04:10 AM

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
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
zip files and unzip files
Posted: Wed Aug 27, 2008 04:35 AM
http://forums.fivetechsoft.com/viewtopic.php?t=11622&highlight=hbzip

You can search this forum for hbzip if you wish to read more similar posts
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 56
Joined: Mon Jul 03, 2006 02:34 AM
zip files and unzip files
Posted: Wed Aug 27, 2008 04:37 AM

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

Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
zip files and unzip files
Posted: Wed Aug 27, 2008 02:28 PM

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

Continue the discussion