Page 1 of 1
zip files and unzip files
Posted: Wed Aug 27, 2008 4:10 am
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
Posted: Wed Aug 27, 2008 4:35 am
by hua
http://forums.fivetechsoft.com/viewtopi ... ight=hbzip
You can search this forum for hbzip if you wish to read more similar posts
Posted: Wed Aug 27, 2008 4:37 am
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
Posted: Wed Aug 27, 2008 2:28 pm
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.