Article View: borland.public.cppbuilder.nativeapi
Article #4288Re: PVOID and Borland data types
From: Alan Bellingham
Date: Tue, 07 Feb 2006 19:23
Date: Tue, 07 Feb 2006 19:23
20 lines
1635 bytes
1635 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote: >"Darko Miletic" <darko@uvcms.com> wrote in message > >> SomeAPI(const_cast<PVOID>(str.data())); ><snip> > >If the function takes PVOID or LPVOID, you do not need any casting at all: > > SomeAPI(str.data()); > SomeAPI(str.c_str()); > SomeAPI(str.c_bstr()); Unless you're casting away const, with a const_cast<> ... Alan Bellingham -- Team Thai Kingdom <url:http://www.borland.com/newsgroups/> Borland newsgroup descriptions <url:http://www.borland.com/newsgroups/netiquette.html> netiquette
Technical Details
Message-ID:
<gqshu1t395t5defpp42mhi7n0ra55egksm@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!colt.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43e7b1a5$1@newsgroups.borland.com> <43e7b5aa@newsgroups.borland.com> <43e8eb19$2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e5fa031ed46571ec X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: PVOID and Borland data types Date: Tue, 07 Feb 2006 19:23:05 +0000 Reply-To: alanb@episys.com Message-ID: <gqshu1t395t5defpp42mhi7n0ra55egksm@4ax.com> References: <43e7b1a5$1@newsgroups.borland.com> <43e7b5aa@newsgroups.borland.com> <43e8eb19$2@newsgroups.borland.com> X-Newsreader: Forte Agent 3.2/32.830 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.49.31.105 X-Trace: newsgroups.borland.com 1139339969 62.49.31.105 (7 Feb 2006 11:19:29 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!colt.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail