FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour hb_zip difference between harbour and xharbour
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
hb_zip difference between harbour and xharbour
Posted: Thu Jul 03, 2014 10:10 AM

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
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: hb_zip difference between harbour and xharbour
Posted: Thu Jul 03, 2014 09:29 PM

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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: hb_zip difference between harbour and xharbour
Posted: Fri Jul 04, 2014 04:07 AM

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
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: hb_zip difference between harbour and xharbour
Posted: Fri Jun 26, 2015 12:42 PM

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 & MSVC 2022 & FWH 23.06

Continue the discussion