Menu

#107 setup.exe can't get version of Delphi

open
nobody
None
5
2002-03-07
2002-03-07
No

Hello,

yesterday (6. Mar. 2002)I tried to install FreeCLX on
Delphi6 OE (german, Update Package 2) on WinXP Home
Edition (german).

The compilation of Setup.dpr was fine, but I couldn't
run it successfully.

The error:
The version number of Delphi was not detected successfully.

The reason:
In line 93 of Setup.dpr you use the function
StrToFloat. This function uses the global variable
DecimalSeperator, which is '.' in US and may be many
other installations. But in german version
DecimalSeperator is ',' and the ThousandSeperator is '.'.
This results in an error while StrToFloat is executed.

The possible solution:
Don't use the function FloatToStr because it relies on
system-specific configuration. Use the old procedure
Val instead, because it uses always the '.' as
seperator and works fine for me.

Best regrads

Dietmar Schurr

Discussion


Log in to post a comment.

MongoDB Logo MongoDB