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