HB_ZipFile - Password problem - SOLVED
HB_ZipFile - Password problem - SOLVED
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
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.
- Enrico Maria Giordano
- Posts: 8728
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: HB_ZipFile - Password problem
Your sample works fine here.
Re: HB_ZipFile - Password problem
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
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
- Enrico Maria Giordano
- Posts: 8728
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: HB_ZipFile - Password problem
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
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
I have a suspicion, regarding the LIBS orders in buildh.bat
- Enrico Maria Giordano
- Posts: 8728
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: HB_ZipFile - Password problem
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
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.
The strangest thing is that if you remove the password, it works.
Re: HB_ZipFile - Password problem
Bira, Tente assim:
Regards, saludos.
Code: Select all | Expand
HB_ZIPFILE( cFilZip, aFiles, 9,,.T., "695", .F., .F., )
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
- Enrico Maria Giordano
- Posts: 8728
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: HB_ZipFile - Password problem
Probably you are not using the latest Harbour build: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.
https://github.com/FiveTechSoft/harbour ... 240814.zip
Re: HB_ZipFile - Password problem
João,
HB_ZIPFILE( cFilZip, aFiles, 9,,.T., "695", .F., .F., )
tambem não funciona!
HB_ZIPFILE( cFilZip, aFiles, 9,,.T., "695", .F., .F., )
tambem não funciona!
Re: HB_ZipFile - Password problem
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.
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
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
Regards, saludos.
https://imgur.com/dQ9ti47
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Re: HB_ZipFile - Password problem
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.
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.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Re: HB_ZipFile - Password problem
jOAO, nas minhas versoes anteriores, 16.04 E 18.02 funciona normal, nao esta funcionando na 24.04
- Enrico Maria Giordano
- Posts: 8728
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: HB_ZipFile - Password problem
You have to use BCC 7.70, not BCC 7.30.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.