Re: [twsocket] Best way to upgrade ...

2013-09-19 Thread Angus Robertson - Magenta Systems Ltd
 I am working on a project that was originally written in D5. And 
 the project using a free IRC component, SlyIrc by Steve Williams, 
 were it has used TWSocket v434 for its wsocket needs. 
 
 So, once I 
 edit this line to correctly use the FWSocket I now get the 
 following  hard error:
 
 [dcc32.Error] SlyIrc.pas(741): E2003 Undeclared identifier: 
 'LocalHostName'
 
 The new error is with the same line of code as the previous error, 
 here is that specific line causing the error:
 
 Send(Format('USER %s %s %s :%s', [FUsername, 
 FWSocket.LocalHostName, FHost, FRealName]));

Just remove FWSocket. and it will compile, at least after you also remove the
line with SlyIrcEx in the dpr since this is missing from the project.   

Can not tell you if it actually works since I've managed to avoid IRC for any
entire professional life.

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Best way to upgrade ...

2013-09-19 Thread Angus Robertson - Magenta Systems Ltd
 Can not tell you if it actually works 

Should have said that since you want to use XE3, you also have to undertake a
Unicode conversion of the source code, since all the PChars and Strings will
now become wide by default.  You can trying changing them all to PAnsiChar and
AnsiString, but you'll then need Ansi versions of any functions called.

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be