zip files and unzip files

zip files and unzip files

Postby hag » Wed Aug 27, 2008 4: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
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Postby hua » Wed Aug 27, 2008 4: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
hua
 
Posts: 1050
Joined: Fri Oct 28, 2005 2:27 am

Postby Colin Wisbey » Wed Aug 27, 2008 4: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
Colin Wisbey
 
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am

Postby hag » Wed Aug 27, 2008 2: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
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 78 guests