> Thank you so much for all your patience and an excellent product.

You welcome.
In french, we have a proverb saying (Free translation): "Only those who 
don't work, don't do errors".

--
[EMAIL PROTECTED]
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be


----- Original Message ----- 
From: "Hein du Plessis" <[EMAIL PROTECTED]>
To: "'ICS support mailing'" <twsocket@elists.org>
Sent: Friday, August 15, 2008 5:06 PM
Subject: Re: [twsocket] Using TWSocket


> Francois I am terribly embarressed! Through a combination of type and
> variable errors I missed the obvious.
>
> WSocket.Send(@Size,2) works indeed.
>
> Thank you so much for all your patience and an excellent product.
>
> Regards,
> Hein
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Francois PIETTE
> Sent: 15 August 2008 16:20
> To: ICS support mailing
> Subject: Re: [twsocket] Using TWSocket
>
>>  Size: Word;
>>  p:= @Size;
>>  WSocket.Send(Size,2); // THIS IS THE PROBLEM. IT WORKS IF I NOW USE P
>> as
>
> Send takes a pointer as first parameter. You are passing an integer ! That
> is what the compiler telling you when it says "There is no overloaded
> version of "Send"  that can be called with these arguments."
>
> Use WSocket.Send(@Size, SizeOf(Size));
>
> btw: This is really not an issue with ICS but just Delphi syntax and
> compiler error understanding...
>
> --
> [EMAIL PROTECTED]
> The author of the freeware multi-tier middleware MidWare The author of the
> freeware Internet Component Suite (ICS) http://www.overbyte.be
>
>
> ----- Original Message -----
> From: "Hein du Plessis" <[EMAIL PROTECTED]>
> To: "'ICS support mailing'" <twsocket@elists.org>
> Sent: Friday, August 15, 2008 3:08 PM
> Subject: Re: [twsocket] Using TWSocket
>
>
>> Hi There
>>
>> Here is the entire routine:
>>
>> procedure TfrmMain.btnRequestClick(Sender: TObject);
>> var XMLData: TStringStream;
>>  SizeData: TMemoryStream;
>>  Msg: String;
>>  Size: Word;
>>  p: TWSocketData;
>> begin
>>  {Package and send}
>>  Msg:=
>> BuildVendRequest(edSeq.Value,edReference.Text,114.50,'01000000032');
>>  XMLData := TStringStream.Create(Msg);
>>  SizeData:= TMemoryStream.Create;
>>  Size:= length (Msg);
>>  Size:= Swap(Size);
>>  p:= @Size;
>>
>>  LogMessage('Sending Request...');
>>
>>  WSocket.BufSize:= 2;
>>  p:= @Size;
>>  WSocket.Send(Size,2); // THIS IS THE PROBLEM. IT WORKS IF I NOW USE P as
>> the parameter.
>>  WSocket.SendStr(Msg);
>>
>>  XMLData.Free;
>>  SizeData.Free;
>> end;
>>
>> Just change
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>> Behalf Of Francois PIETTE
>> Sent: 15 August 2008 12:23
>> To: ICS support mailing
>> Subject: Re: [twsocket] Using TWSocket
>>
>>> The error I received was "There is no overloaded version of "Send"
>>> that can be called with these arguments.
>>>
>>> This is when I try to send a variable of type word. The @ prefix did
>>> not work either.
>>
>> Would be REALLY interesting to see the offending line !
>>
>>> I'm using Delphi 2007 Version 11.0.2804.9245 I'm not sure if there are
>>> further updates available.
>>
>> This is an old version. Latest is 11.0.2902.10471 See
>> http://cc.codegear.com/reg/delphi and download/install everything !
>>
>> --
>> [EMAIL PROTECTED]
>> The author of the freeware multi-tier middleware MidWare The author of 
>> the
>> freeware Internet Component Suite (ICS) 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
>
>
> -- 
> 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