Article View: borland.public.cppbuilder.nativeapi
Article #4286Re: PVOID and Borland data types
From: Remy Lebeau (TeamB)
Date: Tue, 07 Feb 2006 18:48
Date: Tue, 07 Feb 2006 18:48
28 lines
2025 bytes
2025 bytes
"Mike Collins" <its@thebottomofthe.post> wrote in message news:43e7f718$1@newsgroups.borland.com... > There's no getting anything pass your Remy :-) yes, that's exactly > what I'm trying to do... I suppose the REG_XXX_SZ gave it away. Yep. > what is the difference between reinterpret_cast<> and dynamic_cast<>? dynamic_cast executes at run-time and only works on polymorphic types (classes with virtual methods), whereas reinterpret_cast executes at compile-time and works on numeric types (pointers and integers). > Is it still necessary to cast the value to PVOID when using c_bstr()? You don't need to cast anything manually at all in this situation. Pointers are automatically implicitally casted to void* by the compiler. Just pass the pointers to the function as-is, like I showed you earlier. > Also, do you know any good references for the 'undocumented' native api's Such as? Gambit
Technical Details
Message-ID:
<43e8eb19@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!news2.volia.net!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news-lei1.dfn.de!news-fra1.dfn.de!newscore.univie.ac.at!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<43e7b1a5$1@newsgroups.borland.com> <43e7d7ce$1@newsgroups.borland.com> <43e7f718$1@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> <43e7d7ce$1@newsgroups.borland.com> <43e7f718$1@newsgroups.borland.com> Subject: Re: PVOID and Borland data types Date: Tue, 7 Feb 2006 10:48:36 -0800 Lines: 30 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@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!news4.google.com!news3.google.com!news.glorb.com!news2.volia.net!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news-lei1.dfn.de!news-fra1.dfn.de!newscore.univie.ac.at!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail