hb_zip difference between harbour and xharbour

hb_zip difference between harbour and xharbour

Postby Richard Chidiak » 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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: hb_zip difference between harbour and xharbour

Postby driessen » Thu Jul 03, 2014 9: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. 24.02 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc77
User avatar
driessen
 
Posts: 1399
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: hb_zip difference between harbour and xharbour

Postby Richard Chidiak » Fri Jul 04, 2014 4: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: hb_zip difference between harbour and xharbour

Postby Horizon » 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.04
Horizon
 
Posts: 1297
Joined: Fri May 23, 2008 1:33 pm


Return to FiveWin for Harbour/xHarbour

Who is online

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