HB_ZipFile - Password problem - SOLVED

HB_ZipFile - Password problem - SOLVED

Postby MGA » Mon Sep 30, 2024 11:46 am

HB_ZipFile (with password), it worked in version 16.08.
In version 24.04, if you enter a password, it doesn't work.

If you add a password, compression does not work.

the problem also happens in prg: c:\fwh\samples\testzip.prg

#include "fivewin.ch"

function main()
local aFiles:={}, cFilZip

AADD(aFiles, "c:\fwh\samples\testdlg.prg")

cFilZip := "c:\fwh\samples\test.zip"

ferase(cFilZip)

lOK := HB_ZipFile( cFilZip, aFiles, 9,,,'695',.F. ) //695 is a password

? lOK

return
Last edited by MGA on Tue Oct 01, 2024 12:29 pm, edited 1 time in total.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá


Re: HB_ZipFile - Password problem

Postby MGA » Mon Sep 30, 2024 12:27 pm

Sr. Enrico,

in version (16.08 and 18.02) it also works normally here.

the problem is happening in version 24.04.

all versions with the same harbour version
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: HB_ZipFile - Password problem

Postby Enrico Maria Giordano » Mon Sep 30, 2024 12:38 pm

I'm using latest FWH and your sample works fine. And please note that HB_ZIPFILE() is a [x]Harbour function, not a FWH function.
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: HB_ZipFile - Password problem

Postby MGA » Mon Sep 30, 2024 12:41 pm

Yes, I understand that it is a function of harbour. But, it is happening here.
I have a suspicion, regarding the LIBS orders in buildh.bat
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: HB_ZipFile - Password problem

Postby Enrico Maria Giordano » Mon Sep 30, 2024 1:03 pm

This is the order I'm using, but it should not make any difference (please note that I'm also using MiniZIP, but it doesn't matter):

Code: Select all  Expand view
hbvm +
hbcommon +
hbrtl +
hbmacro +
gtwin +
hbrdd +
hbsix +
rddntx +
rddfpt +
xhb +
hbct +
hbwin +
hbpcre +
hbziparc +
hbmzip +
minizip +
hbzlib +
rddcdx +
gtgui +
hbtip +
hbcplr +
hbpp +
hbcpage +
hbcurl +
libcurl
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: HB_ZipFile - Password problem

Postby MGA » Mon Sep 30, 2024 1:12 pm

Mr. Enrico, it's the same, even using minizip.lib. If just for testing, I comment out minizip.lib, it generates several errors.

The strangest thing is that if you remove the password, it works.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: HB_ZipFile - Password problem

Postby karinha » Mon Sep 30, 2024 1:48 pm

Bira, Tente assim:

Code: Select all  Expand view

   HB_ZIPFILE( cFilZip, aFiles, 9,,.T., "695", .F., .F., )
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: HB_ZipFile - Password problem

Postby Enrico Maria Giordano » Mon Sep 30, 2024 1:51 pm

MGA wrote:Mr. Enrico, it's the same, even using minizip.lib. If just for testing, I comment out minizip.lib, it generates several errors.

The strangest thing is that if you remove the password, it works.


Probably you are not using the latest Harbour build:

https://github.com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/harbour_bcc770_32_20240814.zip
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: HB_ZipFile - Password problem

Postby MGA » Mon Sep 30, 2024 6:18 pm

João,

HB_ZIPFILE( cFilZip, aFiles, 9,,.T., "695", .F., .F., )

tambem não funciona!
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: HB_ZipFile - Password problem

Postby MGA » Mon Sep 30, 2024 6:33 pm

Sr. Enrico,

I downloaded harbour(r2407221137), as I don't have BCC770, I compiled it with my BCC7.3. And the problem persists. That is, if you put a password, it doesn't compress the files, if you remove the password it compresses them.


I don't know how, but it seems to have something to do with the FIVEWIN version.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: HB_ZipFile - Password problem

Postby karinha » Mon Sep 30, 2024 6:56 pm

Bira, PBACKUP.prg para HARBOUR. Compile, informe a contrasenha e me diga se funciona com a sua versão. Com FWH1905, funciona perfeito. Abra o .ZIP no WINIRAR.exe, ok?

https://imgur.com/dQ9ti47

Image

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: HB_ZipFile - Password problem

Postby karinha » Mon Sep 30, 2024 6:57 pm

Bira, download completo do meu MegaUpload, aqui:

https://mega.nz/file/II9GTBLZ#h4aAe8VgDqbICFsLRu8lXI5xLH-YbTq3Z3ekImYvOFg

Veja: HARB.BAT y HARB.LNK -> Modifique os PATHS para a sua versão(bugada) do Fivewin, ok?

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: HB_ZipFile - Password problem

Postby MGA » Mon Sep 30, 2024 7:11 pm

jOAO, nas minhas versoes anteriores, 16.04 E 18.02 funciona normal, nao esta funcionando na 24.04
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: HB_ZipFile - Password problem

Postby Enrico Maria Giordano » Mon Sep 30, 2024 7:15 pm

MGA wrote:Sr. Enrico,

I downloaded harbour(r2407221137), as I don't have BCC770, I compiled it with my BCC7.3. And the problem persists. That is, if you put a password, it doesn't compress the files, if you remove the password it compresses them.


I don't know how, but it seems to have something to do with the FIVEWIN version.


You have to use BCC 7.70, not BCC 7.30.
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 32 guests