hb_zip difference between harbour and xharbour

Post Reply
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

hb_zip difference between harbour and xharbour

Post by Richard Chidiak »

Good morning

I have an ennoying difference with the zip file generated with Harbour

Supposing the working directory is Test

zipping the test directory with Xharbour will show Test as main directory , with harbour it will show C as main directory then test below

the code used is the following

lZipDone := HB_ZIPFILE( cZip , aFiles , 9, {|cFile,nPos| UPDMETER(CFILE,OMETER,NPOS,@nctr,NLEN,ODLG,@DLGFILE,OBJFILE)}, .T.,, lZipWithPath, .F. )

Does anyone know how to deal with this ?

thanks for the help

PS : this is my housekeeping program, the only one i still use xharbour for....

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: hb_zip difference between harbour and xharbour

Post by driessen »

Richard,

I recently changed from xHarbour Builder to the latest Harbour version. I only had to add som libraries,but all my hb_zip functions are working just fine without changing one single character in my code.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: hb_zip difference between harbour and xharbour

Post by Richard Chidiak »

Michel

I did not change a single line of code neither, this is not the point

The point is that we do not get the same results and it is very ennoying for backwards compatibility

In other words a file saved with xharbour will not be restored properly with harbour and vice versa because harbour will always place the root drive on top.

I had planned to get rid of hb_zip , il will replace with 7z command line , much easier

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: hb_zip difference between harbour and xharbour

Post by Horizon »

Hi Michel,

In order compile HB_ZIPFILE in xHarbour commercial, what libraries should i add?

Thanks.

add : I have forgetten the say my program is console application.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Post Reply