rejetto forum

Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: rejetto on June 25, 2010, 06:05:29 PM

Title: delphi 2010
Post by: rejetto on June 25, 2010, 06:05:29 PM
i tried delphi 2010.
it's like unicode is mandatory, and i found no way to compile HFS the old way until it is ported to unicode.
and this porting is likely to require a considerable amount of work.
Title: Re: delphi 2010
Post by: Mars on June 25, 2010, 08:37:26 PM
you have finally obtain a license?
Title: Re: delphi 2010
Post by: SilentPliz on June 26, 2010, 01:37:36 PM
@ rejetto

Don't takes badly what I write:

I am sorry that this requires hard work for you ... but on the other hand, I tell myself that we still (Mars & me) a little respite before we rest only our eyes to cry.  ;)

@ Mars

Version trial peut-être pour les tests (?)
Title: Re: delphi 2010
Post by: Mars on June 26, 2010, 05:24:35 PM
il faudrait continuer les versions 2.2 et 2.3 avec turbo delphi 2006,

et se préparer directement hfs 3.0 +  php sous delphi 2010

comme ça la transition serait radicale et plus facile que de transformer la 2.3 (utf8)  vers une 2.4 (unicode) qui aurait beaucoup de bugs

qu'en pense notre ami le big boss rejetto?

Title: Re: delphi 2010
Post by: rejetto on June 27, 2010, 01:32:41 PM
yes, HFS 2.3 will stay on delphi 2006, because it's out of question to change of lot while trying to go stable.

I tell myself that we still (Mars & me) a little respite before we rest only our eyes to cry.  ;)

i didn't understand what it means! maybe a bad translation
Title: Re: delphi 2010
Post by: Mars on June 27, 2010, 01:40:42 PM
Quote
Quote from: SilentPliz on 26 June 2010, 15:37:36
I tell myself that we still (Mars & me) a little respite before we rest only our eyes to cry. 


i didn't understand what it means! maybe a bad translation

c'est ce qui fait le charme de silentpliz, quand il pose une question , on ne comprend jamais ce qu'il veut exactement :D
Title: Re: delphi 2010
Post by: SilentPliz on June 27, 2010, 01:58:45 PM
@ mars

Je connais un autre gars qui a du charme, surtout quand il est question de langue anglaise.  ;D

@ rejetto

This is probably a French expression lost in translation and my bad english:

"il ne nous restera (à Mars et à moi) que nos yeux pour pleurer"

I wanted to somehow say that more your work will be long, more we might be able to publish versions compiled with Delphi 2006.

When you will finished your work, and that HFS will be compiled with Delphi 2010 ... we will remain only, Mars and me, to weep.
Title: Re: delphi 2010
Post by: rejetto on July 05, 2011, 10:08:40 AM
since i'm having problems with turbo delphi on my new system (windows7 64bit), i'm now trying again to port the project to Delphi XE.
Backward compatibility has been highly improved over Delphi 2010. I was able to run hfs with just a couple of changes.
Now i'm trying to fix some lasting problems, but hope is high.
Title: Re: delphi 2010
Post by: Mars on July 05, 2011, 01:24:45 PM
I count on you to make us share this delphi new and where found installs when you will have resolved these some problems
 ;)
Title: Re: delphi 2010
Post by: tukaee on August 07, 2011, 06:52:01 PM
Hi,

I really credit your effort and I want to say thank you very much, someday I am willing to donate for you.

About Porting to another version of Delphi. I will encourage you to wait for 2 weeks time when Delphi XE2 will be release and then you can ported to unicode and as thesame time you ported to 64bit version.

Have look it here

http://www.youtube.com/watch?v=JtFIw2YpuQc&feature=player_embedded

since i'm having problems with turbo delphi on my new system (windows7 64bit), i'm now trying again to port the project to Delphi XE.
Backward compatibility has been highly improved over Delphi 2010. I was able to run hfs with just a couple of changes.
Now i'm trying to fix some lasting problems, but hope is high.
Title: Re: delphi 2010
Post by: vuongnguyen on August 26, 2011, 08:03:06 AM
How to compile HFS in delphi 2010. I've import all lib to delphi option but it still have error.


[DCC Warning] wsocket.pas(1669): W1050 WideChar reduced to byte char in set expressions.  Consider using 'CharInSet' function in 'SysUtils' unit.
[DCC Warning] wsocket.pas(1672): W1050 WideChar reduced to byte char in set expressions.  Consider using 'CharInSet' function in 'SysUtils' unit.
[DCC Error] wsocket.pas(2174): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(2175): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(2195): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(2196): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(2231): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(2271): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(2327): E2003 Undeclared identifier: 'GWSockCritSect'
[DCC Error] wsocket.pas(2327): E2033 Types of actual and formal var parameters must be identical
[DCC Error] wsocket.pas(2330): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(2343): E2251 Ambiguous overloaded call to 'GetProcAddress'
  Windows.pas(31700): Related method: function GetProcAddress(Cardinal; PAnsiChar): Pointer;
  Windows.pas(31701): Related method: function GetProcAddress(Cardinal; PWideChar): Pointer;
[DCC Error] wsocket.pas(2350): E2033 Types of actual and formal var parameters must be identical
[DCC Error] wsocket.pas(2416): E2003 Undeclared identifier: 'GWSockCritSect'
[DCC Error] wsocket.pas(2416): E2033 Types of actual and formal var parameters must be identical
[DCC Error] wsocket.pas(2417): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(2418): E2033 Types of actual and formal var parameters must be identical
[DCC Error] wsocket.pas(2425): E2003 Undeclared identifier: 'GWSockCritSect'
[DCC Error] wsocket.pas(2425): E2033 Types of actual and formal var parameters must be identical
[DCC Error] wsocket.pas(2426): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(2427): E2033 Types of actual and formal var parameters must be identical
[DCC Error] wsocket.pas(3391): E2003 Undeclared identifier: 'XSocketAllocateHWnd'
[DCC Error] wsocket.pas(3415): E2003 Undeclared identifier: 'XSocketDeallocateHWnd'
[DCC Error] wsocket.pas(3451): E2003 Undeclared identifier: 'AllocateHWnd'
[DCC Error] wsocket.pas(3451): E2035 Not enough actual parameters
[DCC Error] wsocket.pas(3458): E2003 Undeclared identifier: 'DeallocateHWnd'
[DCC Error] wsocket.pas(3481): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(3506): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(3557): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(3576): E2064 Left side cannot be assigned to
[DCC Error] wsocket.pas(6693): E2251 Ambiguous overloaded call to 'StrLComp'
  SysUtils.pas(8335): Related method: function StrLComp(const PAnsiChar; const PAnsiChar; Cardinal): Integer;
  SysUtils.pas(8360): Related method: function StrLComp(const PWideChar; const PWideChar; Cardinal): Integer;
[DCC Error] wsocket.pas(6909): E2003 Undeclared identifier: 'GClassCritSect'
[DCC Error] wsocket.pas(6909): E2033 Types of actual and formal var parameters must be identical
[DCC Error] wsocket.pas(6910): E2003 Undeclared identifier: 'GWSockCritSect'
[DCC Error] wsocket.pas(6910): E2033 Types of actual and formal var parameters must be identical
[DCC Error] wsocket.pas(6918): E2033 Types of actual and formal var parameters must be identical
[DCC Error] wsocket.pas(6920): E2033 Types of actual and formal var parameters must be identical
[DCC Fatal Error] main.pas(37): F2063 Could not compile used unit 'wsocket.pas'


I think it maybe because wsocket version.
In dev note file said that we must use wsocket v5.25, but I can't find this file in internet. I use ICS V5 with wsocket v5.31 . Is this the solution ?

Please help me.
Title: Re: delphi 2010
Post by: rejetto on August 26, 2011, 03:18:58 PM
try a newer version
Title: Re: delphi 2010
Post by: vuongnguyen on August 26, 2011, 03:25:02 PM
yes. I try with beta version & it still need many library. maybe Embarcadero® Delphi® 2010 is the root cause. Do u think that.
Title: Re: delphi 2010
Post by: rejetto on August 29, 2011, 08:48:09 PM
i meant a newer version of the lib
latest beta is using ICS v7
Title: Re: delphi 2010
Post by: vuongnguyen on August 30, 2011, 10:04:22 AM
compile ok but some exception still occur.
Main form and other form display normally but I can use  browser to connect to server.
It show exception
First chance exception at $7568D36F. Exception class EStringListError with message 'List index out of bounds (-1)'. Process hfs.exe (3196)
First chance exception at $7568D36F. Exception class EStringListError with message 'List index out of bounds (-1)'. Process hfs.exe (2948)
First chance exception at $7568D36F. Exception class EAccessViolation with message 'Access violation at address 0043BD40 in module 'hfs.exe'. Read of address 00000000'. Process hfs.exe (2948)
First chance exception at $7568D36F. Exception class EAccessViolation with message 'Access violation at address 0043BD40 in module 'hfs.exe'. Read of address 00000000'. Process hfs.exe (2948)
in code

function TStringList.GetObject(Index: Integer): TObject;
begin
  if Cardinal(Index) >= Cardinal(FCount) then
    Error(@SListIndexError, Index);
  Result := FList^[Index].FObject;
end;



 
Title: Re: delphi 2010
Post by: rejetto on September 01, 2011, 12:54:56 PM
you probably have to disable the "stop on exception". It's somewhere inside Delphi.
Because that's probably a handled exception.
Title: Re: delphi 2010
Post by: vuongnguyen on September 06, 2011, 06:19:33 AM
Maybe I back to delphi 2006 version . Delphi 2010 have too many problem.
Do you fix your solution with delphi2010 and window 7 64bit.
Could you tell me how to make it work normal with this environment !
Title: Re: delphi 2010
Post by: vuongnguyen on September 12, 2011, 08:10:00 AM
back to delphi 2006 & it worked perfectly.
thanks rejetto
Title: Re: delphi 2010
Post by: rejetto on September 17, 2011, 05:24:52 PM
i didn't find my way through new delphi and 64bit yet
Title: Re: delphi 2010
Post by: tukaee on November 05, 2011, 03:49:42 PM
ICS 7: D7 - DXE2 (Support XE2 Win32 only)

http://svn.overbyte.be:8443/svn/ics/trunk/Delphi/Vc32/ (http://svn.overbyte.be:8443/svn/ics/trunk/Delphi/Vc32/)

Username: ics & Password: ics

DXE2 ISO update 2

http://altd.embarcadero.com/download/radstudio/xe2/delphicbuilder_xe2_4316_win_dl.iso  (http://altd.embarcadero.com/download/radstudio/xe2/delphicbuilder_xe2_4316_win_dl.iso)

i didn't find my way through new delphi and 64bit yet
Title: Re: delphi 2010
Post by: Mars on November 05, 2011, 08:50:50 PM
Many thanks for sharing  ;)