Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in allv7demo applications

2008-11-08 Thread Francois PIETTE
>> If the problem with current demos ini files is just related to Unicode >> strings handling, probably an TCustomIniFile descendant with string utf8 >> encode/decode is enough. > > Obvious from TCustomIniFile will not work, must be descendant from > TIniFile. > > TMyUnicodeIniFile=Class(TIniFile)

Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in allv7 demo applications

2008-11-08 Thread Maurizio Lotauro
Scrive Arno Garrels <[EMAIL PROTECTED]>: > > I'm against to write into the registry from a demo application. > > OK, so nobody likes the suggestion :( Personally I think that registry keys should be created/removed by setup, otherwise they will remain forever. IIRC Microsoft guide lines (from XP

Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in allv7demo applications

2008-11-08 Thread RTT
> If the problem with current demos ini files is just related to Unicode > strings handling, probably an TCustomIniFile descendant with string utf8 > encode/decode is enough. Obvious from TCustomIniFile will not work, must be descendant from TIniFile. TMyUnicodeIniFile=Class(TIniFile) public

Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in allv7 demo applications

2008-11-08 Thread Maurizio Lotauro
Scrive Arno Garrels <[EMAIL PROTECTED]>: > > I'm against to write into the registry from a demo application. > > OK, so nobody likes the suggestion :( Personally I think that creation and remove of registry keys should be done by program setups. Otherwise they will remain forever. IIRC Microsoft

Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in allv7demo applications

2008-11-08 Thread RTT
>> XML can ease the process. >> > > I don't think so. XML is an heavy beast, taking a lot of code and power. I > don't like it for that purpose. Just one idea to implement the ini sections handling, without the need to write parsing code. It's heavy, but to deal with these little ini files

Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in allv7demo applications

2008-11-08 Thread Francois PIETTE
>>> That's IMO not worth the effort, I was searching for a very simple >>> solution that took not more than a few minutes to change everything. >> What about writing a new TIcsIniFile doing the job ? >> Would be enough to search&replace TIniFile by TIcsIniFile. >> TIcsIniFile or TUnicodeIniFile

Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in allv7demo applications

2008-11-08 Thread RTT
>> That's IMO not worth the effort, I was searching for a very simple >> solution that took not more than a few minutes to change everything. >> > > What about writing a new TIcsIniFile doing the job ? > Would be enough to search&replace TIniFile by TIcsIniFile. > > TIcsIniFile or TUnicodeIn

Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in allv7demo applications

2008-11-08 Thread Francois PIETTE
>> I agree with Angus points. >> As work around, can you transform the unicode strings to >> UTF-8 before write it into the ini file? > That's IMO not worth the effort, I was searching for a very simple > solution that took not more than a few minutes to change everything. What about writing a

Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in allv7 demo applications

2008-11-08 Thread Arno Garrels
> I'm against to write into the registry from a demo application. OK, so nobody likes the suggestion :( > I agree with Angus points. > As work around, can you transform the unicode strings to UTF-8 before > write it into the ini file? That's IMO not worth the effort, I was searching for a very s

Re: [twsocket] IsAddressValid

2008-11-08 Thread Arno Garrels
[EMAIL PROTECTED] wrote: > The procedure "IsAddressValid" in the ICS demo project "HttpChk" works > well to check the validity of a URL, but it is very laggy. If you > want to do checks on multiple websites it is much too lengthy/laggy. > Is there a better solution for checking the validity of a UR