Article View: borland.public.cppbuilder.nativeapi
Article #1607Re: how to resolve conflicts in gdi+ ?
From: Alan Bellingham
Date: Thu, 05 Jul 2007 21:55
Date: Thu, 05 Jul 2007 21:55
17 lines
1526 bytes
1526 bytes
Darko Miletic <kiklop@fibertel.com.ar> wrote: >> const HANDLE handle=...; >> GetWindowLong(handle, GWL_STYLE); >GetWindowLong(reinterpret_cast<HWND>(const_cast<HANDLE>(handle)),GWL_STYLE); Why the const_cast<>? It should be totally irrelevant, since it's a top level const in this case, and GetWindowLong receives its first parameter by value, not by reference. Alan Bellingham -- Team Browns <url:http://www.borland.com/newsgroups/> Borland newsgroup descriptions <url:http://www.borland.com/newsgroups/netiquette.html> netiquette
Technical Details
Message-ID:
<m3qq831tcuo3jit44ufdrnut1mmtarh997@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<468d2ea0@newsgroups.borland.com> <468d312f$1@newsgroups.borland.com> <468d3c18@newsgroups.borland.com> <468d5566$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,42fc4c19e42cbb45 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: how to resolve conflicts in gdi+ ? Date: Thu, 05 Jul 2007 22:55:13 +0100 Reply-To: alanb@episys.com Message-ID: <m3qq831tcuo3jit44ufdrnut1mmtarh997@4ax.com> References: <468d2ea0@newsgroups.borland.com> <468d312f$1@newsgroups.borland.com> <468d3c18@newsgroups.borland.com> <468d5566$1@newsgroups.borland.com> X-Newsreader: Forte Agent 4.2/32.1118 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 1183672514 62.49.31.105 (5 Jul 2007 14:55:14 -0700) Lines: 17 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail