Re: [twsocket] CBuilder Syntax

2008-02-07 Thread Fastream Technologies
What was the error you got? On 2/8/08, Rocky Castaneda <[EMAIL PROTECTED]> wrote: > > I get Exceptions on all the suggested syntax. What > could be wrong here. > > --- Fastream Technologies <[EMAIL PROTECTED]> wrote: > > > I forgot the ampersand. It should be either, > > > > SendStream->Write(&Buf

Re: [twsocket] CBuilder Syntax

2008-02-07 Thread Rocky Castaneda
I get Exceptions on all the suggested syntax. What could be wrong here. --- Fastream Technologies <[EMAIL PROTECTED]> wrote: > I forgot the ampersand. It should be either, > > SendStream->Write(&Buf[1], Buf.Length()); > > or as Paul suggested. > > Best Regards, > > SZ > > On 2/7/08, Paul Ing

Re: [twsocket] CBuilder Syntax

2008-02-07 Thread Fastream Technologies
I forgot the ampersand. It should be either, SendStream->Write(&Buf[1], Buf.Length()); or as Paul suggested. Best Regards, SZ On 2/7/08, Paul Ingelbrant <[EMAIL PROTECTED]> wrote: > > Fastream Technologies wrote: > > AnsiString Buf = "test string"; > > > > SendStream->Write(Buf[1], Buf.Length(

Re: [twsocket] CBuilder Syntax

2008-02-07 Thread Paul Ingelbrant
Fastream Technologies wrote: > AnsiString Buf = "test string"; > > SendStream->Write(Buf[1], Buf.Length()); > or SendStream->Write(Buf.c_str(), Buf.Length()); ? -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/tw

Re: [twsocket] CBuilder Syntax

2008-02-07 Thread Rocky Castaneda
I get the error Cannot convert 'int' to 'const void *' Buf[1] is passed as int instead of const void *. --- Fastream Technologies <[EMAIL PROTECTED]> wrote: > AnsiString Buf = "test string"; > > SendStream->Write(Buf[1], Buf.Length()); > > Regards, > > SZ > > > On 2/7/08, Rocky Castaneda >

Re: [twsocket] CBuilder Syntax

2008-02-07 Thread Fastream Technologies
AnsiString Buf = "test string"; SendStream->Write(Buf[1], Buf.Length()); Regards, SZ On 2/7/08, Rocky Castaneda <[EMAIL PROTECTED]> wrote: > > Hi I have a code snippet for THttpCli on Delphi doing > the following: > > > Buf := 'test string'; > SendStream.Write(Buf[1], Length(Buf)); > > > whe

[twsocket] CBuilder Syntax

2008-02-07 Thread Rocky Castaneda
Hi I have a code snippet for THttpCli on Delphi doing the following: Buf := 'test string'; SendStream.Write(Buf[1], Length(Buf)); where Buf is a String. Question: How do we convert the snippet above to C++ Builder? All the best, rocky __