Re: [twsocket] Using TWSocket

2008-08-15 Thread Francois PIETTE
> 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

Re: [twsocket] Using TWSocket

2008-08-15 Thread Hein du Plessis
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 PROTE

Re: [twsocket] Using TWSocket

2008-08-15 Thread Francois PIETTE
> 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 the

Re: [twsocket] Using TWSocket

2008-08-15 Thread Hein du Plessis
Hi, Yes in the mean time I've adjusted the code, please see previous email. Regards, Hein -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois PIETTE Sent: 15 August 2008 14:09 To: ICS support mailing Subject: Re: [twsocket] Using TWSocket >> The er

Re: [twsocket] Using TWSocket

2008-08-15 Thread Hein du Plessis
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,'0100032');

Re: [twsocket] Using TWSocket

2008-08-15 Thread Francois PIETTE
>> 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. >> WSocket.BufSize:= 2; >> p:= @Size; >> WSocket.Send(p); TWSocket.Send require tw

Re: [twsocket] Using TWSocket

2008-08-15 Thread Angus Robertson - Magenta Systems Ltd
> Would be REALLY interesting to see the offending line ! He gave it in an earlier message, only one parameter so clearly an error, and not pointing to any data either but the size, and corrupting the main buffer: WSocket.BufSize:= 2; p:= @Size; WSocket.Send(p); Angus -- To unsubscribe

Re: [twsocket] Using TWSocket

2008-08-15 Thread Francois PIETTE
> 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

Re: [twsocket] Using TWSocket

2008-08-15 Thread Hein du Plessis
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. I'm using Delphi 2007 Version 11.0.2804.9245 I'm not sure if there are further updates available. Reg

Re: [twsocket] Using TWSocket

2008-08-15 Thread Francois PIETTE
> I declared p as TWSocketData, assigned my data to it and Send sends it > perfectly! Strange that I cant use my data straight in the send method (I > get the type mismatch error). Please post your code snippet here, and the exact error message. Which Delphi version are you using ? Are you sure yo

Re: [twsocket] Using TWSocket

2008-08-15 Thread Hein du Plessis
Thanks Francois I declared p as TWSocketData, assigned my data to it and Send sends it perfectly! Strange that I cant use my data straight in the send method (I get the type mismatch error). Thanks again! Regards, Hein -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: [twsocket] Using TWSocket

2008-08-15 Thread Francois PIETTE
>I have tried to ctrl+click to find the delcaration, but it would not. Have you tried CTRL+SHFT+F (Find in files) ? This always work ! TWSocketData is defined in WSockBuf.pas like this: TWSocketData = type Pointer; If you need to use it in you own application, just add OverbyteIcsWSockBuf in