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
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi I have a code snippet for THttpCli on Delphi
> doing
> > the following:
> >
> > <snippet>
> > Buf := 'test string';
> > SendStream.Write(Buf[1], Length(Buf));
> > </snippet>
> >
> > where Buf is a String.
> >
> > Question:
> >
> > How do we convert the snippet above to C++
> Builder?
> >
> > All the best,
> >
> > rocky
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Looking for last minute shopping deals?
> > Find them fast with Yahoo! Search.
> >
>
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> > --
> > 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
> 



      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

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

Reply via email to