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 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()); > &g

[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 __