João Gonçalves wrote:
> Hello,
> After removing the "const" from the functions' prototypes, doesn't
> gives any compiler errors, but the linker errors still persists. Here
> is the error that gives:
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendTo(sockaddr_in&, int, void *
> const, int)' referenced from ...TCPSRV1.OBJ

In OverbyteIcsWSocket.pas, in both Interface and Implementation section of
the unit, replace (TCustomWSocket) SendTo by:

function SendTo(
    Dest       : TSockAddr;
    DestLen    : Integer;
    {$IFDEF CLR} const {$ENDIF} Data : TWSocketData;
    Len        : Integer) : Integer;

function TCustomWSocket.SendTo(
    Dest       : TSockAddr;
    DestLen    : Integer;
    {$IFDEF CLR} const {$ENDIF} Data : TWSocketData;
    Len        : Integer) : Integer;

You need to save and rebuild all afterwards.
It works for me, however TCPSRV demo starts and immediately
exits silently ??

> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString,
> unsigned int)' referenced from ...TCPSRV1.OBJ
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString)'
> referenced from ...TCPSRV1.OBJ

In the custom client class RcvdLine is declared as AnsiString.
Concatenation of UnicodeString and AnsiString seems to be the problem.
Declare RcvdLine as String and this error should go away. 

--
Arno Garrels

> 
> -----Mensagem original-----
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Em nome de João Gonçalves
> Enviada: segunda-feira, 20 de Outubro de 2008 12:31
> Para: 'ICS support mailing'
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
> 
> I will give it a try,
> Thanks
> 
> 
> -----Mensagem original-----
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Em nome de Fastream Technologies
> Enviada: segunda-feira, 20 de Outubro de 2008 12:26
> Para: ICS support mailing
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
> 
> Remove the "const" in the pascal source for the params of the
> functions it reports.
> 
> On Mon, Oct 20, 2008 at 2:04 PM, João Gonçalves
> <[EMAIL PROTECTED]>wrote:
> 
>> Hello, thank you for your answers,
>> I'm using ICS v7.0 with the example TCPSRV from v5.
>> In fact I have errors in the Send function, if I comment this part
>> of the code, I get this linker error:
>> [ILINK32 Error] Error: Unresolved external '__fastcall
>> Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int,
>> void * const, int)' referenced from
>> D:\DOCUMENTOS\DESENVOLVIMENTO\PROJECTOS\05908\03 -
>> DESENVOLVIMENTO\03 -
>> INFORMÁTICA\MYSERVER\CPP\INTERNET\BCB2006THREADS2\DEBUG\TCPSRV1.OBJ 
>> 
>> Regards
>> João
>> 
>> 
>> -----Mensagem original-----
>> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Em nome
>> de Fastream Technologies
>> Enviada: segunda-feira, 20 de Outubro de 2008 11:39
>> Para: ICS support mailing
>> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>> 
>> I have seen linker errors in ICSv6 with BCB2007 in TWSocket.Send().
>> Have they been fixed (the "const" should have been removed). Maybe
>> that's the cause..?
>> 
>> Regards,
>> 
>> SZ
>> 
>> On Mon, Oct 20, 2008 at 1:16 PM, Arno Garrels <[EMAIL PROTECTED]>
>> wrote: 
>> 
>>> João Gonçalves wrote:
>>>> Hello,
>>>> I currently working with C++ Builder 2009, and I'm trying to
>>>> upgrade my TCP server (based on the ICS TCPSRV demo) for this
>>>> version, but I'm getting several inconsistency and linker errors.
>>>> Can anyone give me a little help, on this?
>>> 
>>> AFAIK, ICS for C++ Builder 2009 is completely untested, there is a
>>> CB package included which builds w/o errors, that's all.
>>> Please provide the linker error text, also a minimal project that
>>> demonstrates the errors would be very helpful.
>>> 
>>> --
>>> Arno Garrels
>>>  --
>>> 
>>  --
>> 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
>> 
>> --
>> 
> --
> 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
> 
> --
> 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
-- 
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

Reply via email to