Re: [twsocket] Using TWSocket

2008-08-15 Thread Hein du Plessis
I have tried to ctrl+click to find the delcaration, but it would not. Can somebody perhaps point me to a sample using send? Thanks again, Hein -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois PIETTE Sent: 14 August 2008 20:02 To: ICS support

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

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

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 you

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

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. WSocket.BufSize:= 2; p:= @Size; WSocket.Send(p); TWSocket.Send require two arguments: 1) A

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:=

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

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 these

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