🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4287

Re: PVOID and Borland data types

#4287
From: Remy Lebeau (TeamB)
Date: Tue, 07 Feb 2006 18:49
15 lines
1254 bytes
"Darko Miletic" <darko@uvcms.com> wrote in message
news:43e7b5aa@newsgroups.borland.com...

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


Gambit
Technical Details
Message-ID: <43e8eb19$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news2.volia.net!solnet.ch!solnet.ch!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <43e7b1a5$1@newsgroups.borland.com> <43e7b5aa@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <43e7b1a5$1@newsgroups.borland.com> <43e7b5aa@newsgroups.borland.com>
Subject: Re: PVOID and Borland data types
Date: Tue, 7 Feb 2006 10:49:55 -0800
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <43e8eb19$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1139338009 68.69.17.41 (7 Feb 2006 10:46:49 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news2.volia.net!solnet.ch!solnet.ch!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail