rejetto forum

delphi 10

rejetto · 112 · 74019

0 Members and 1 Guest are viewing this topic.

Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 203
  • Computer-brain boy
    • View Profile
naitlee, can you guide me on how to reproduce the problem?
do you think it's possible to do also with default template?

I just tried to apply my translation to default template. Attached as hfs.diff.tpl, encoded as utf-8. With the 2 ways I got different result:
 Open that file with notepad, copy-paste all things to diff template in root, it worked perfectly;
 place that file to real folder and bind to root, the file seems got corrupted at some points in its raw data.

So is the function of reading files of HFS or Windows API got wrong?
"Computation is not forbidden magic."
Takeback Template | PHFS


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13520
    • View Profile
thanks. I did exactly what you said, and it always worked well


So what I think is that there is a difference between our 2 systems.
I can try to workaround this problem, anway. I'm going to give you a version with a different loading method.



Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile

Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 856
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
i tried as you said, but i noticed that the only change in the DFM file was to add "ExplicitLeft". Strange. Maybe i didn't do it in the right way. I did it only for the main form now, if someone will confirm that it's working i'll do it for the other windows.
On Windows XP it looks the same on v2.4-alpha06 as v2.4-alpha05. It continues to have bad graphics.

I have very very good news to announce
[...]
So the latest sources can be compiled on a delphi XE2 running under Windows XP
Perhaps you could share with Rejetto all the changes needed...
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13520
    • View Profile
On Windows XP it looks the same on v2.4-alpha06 as v2.4-alpha05. It continues to have bad graphics.
Perhaps you could share with Rejetto all the changes needed...

sigh..... i suspected what i did was not enough. Maybe mars could give me its main.dfm, but that may also be not enough.

I may be able to make tests using a VM with XP.
« Last Edit: May 10, 2020, 08:01:01 PM by rejetto »


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 856
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson

Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 856
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
Is me, or v2.4-alpha06 has broken something?... ???
(I'm talking about the form-based login)

v2.4-alpha05 = Everything OK!
v2.4-alpha06 = "bad password"

I'm getting "bad password" with v2.4-alpha06, and I didn't changed anything on the form based login. The password is fine (user is "ABC" and password is "1234").

I know SHA256 was added on v2.4-alpha06, but reading the source code, it should accept MD5 hashed passwords too (like v2.4-alpha05).

Can someone reproduce this?... :-\
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13520
    • View Profile
i tested using the VM, but could not find a way to make it work. Made several experiments and research. I think the key is that mars used a different delphi version.

the login problem must be because i switched from ICS to delphi library for the md5. I'll see to it.


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Can someone reproduce this?... :-\

I can test tomorrow.
I don't have a PC at the moment, only a smartphone ... so I do the tests where I can.


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
I think the key is that mars used a different delphi version

XE2, I think. He also tries to adapt your code on Rio from his tests on XE2 ... to obtain an XP compatible version of hfs.


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2061
    • View Profile
sigh..... i suspected what i did was not enough. Maybe mars could give me its main.dfm, but that may also be not enough.

I may be able to make tests using a VM with XP.

sorry for the delay but the last version alpha06 cannot be compiled on my delphi xe2, suddenly I modified the dfm by hand

what is different from the original version is the addition where it seems necessary to have
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -12
    Font.Name = 'Tahoma'
    Font.Style = []
    ParentFont = False


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 203
  • Computer-brain boy
    • View Profile
I did a easy test with alpha6, no messcode anymore ;)

But the login problem seems severe, just like everyone said here.

In Leo's login system, with a English username it says password incorrect; with a Chinese username it leaves a "receiving" connection.
In browser login form, with a English username it succeeds; with a Chinese username I got a deadly "400 - Bad request".
"Computation is not forbidden magic."
Takeback Template | PHFS


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13520
    • View Profile
what is different from the original version is the addition where it seems necessary to have
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -12
    Font.Name = 'Tahoma'
    Font.Style = []
    ParentFont = False

thanks mars. I'll try "parentfont=true", so that the font is just one.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13520
    • View Profile
I did a easy test with alpha6, no messcode anymore ;)

But the login problem seems severe, just like everyone said here.

that's wonderful news!
the login problem is silly, and i fixed it very easily, but then had a lot of more work to do for other stuff.
You'll see it fixed in next release, don't worry.