Page 1 of 2

HB_ZipFile - Password problem - SOLVED

Posted: Mon Sep 30, 2024 11:46 am
by MGA
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

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 12:23 pm
by Enrico Maria Giordano
Your sample works fine here.

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 12:27 pm
by MGA
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

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 12:38 pm
by Enrico Maria Giordano
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.

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 12:41 pm
by MGA
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

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 1:03 pm
by Enrico Maria Giordano
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

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

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 1:12 pm
by MGA
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.

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 1:48 pm
by karinha
Bira, Tente assim:

Code: Select all | Expand

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

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 1:51 pm
by Enrico Maria Giordano
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 ... 240814.zip

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 6:18 pm
by MGA
João,

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

tambem não funciona!

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 6:33 pm
by MGA
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.

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 6:56 pm
by karinha
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.

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 6:57 pm
by karinha
Bira, download completo do meu MegaUpload, aqui:

https://mega.nz/file/II9GTBLZ#h4aAe8VgD ... 3ekImYvOFg

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

Regards, saludos.

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 7:11 pm
by MGA
jOAO, nas minhas versoes anteriores, 16.04 E 18.02 funciona normal, nao esta funcionando na 24.04

Re: HB_ZipFile - Password problem

Posted: Mon Sep 30, 2024 7:15 pm
by Enrico Maria Giordano
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.