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()); > > > 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/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