Article View: borland.public.cppbuilder.nativeapi
Article #2961Re: convert a HWND to something I can see
From: Remy Lebeau (TeamB)
Date: Thu, 19 Oct 2006 22:31
Date: Thu, 19 Oct 2006 22:31
13 lines
1268 bytes
1268 bytes
" Bruce Salzman" <bruce@nospam.org> wrote in message
news:4537f8f4$1@newsgroups.borland.com...
> int handle = static_cast<int>(hwnd);
static_cast is the wrong type of casting in this situation. You need to use
reinterpret_cast instead:
int handle = reinterpret_cast<int>(hwnd);
Gambit
Technical Details
Message-ID:
<4537fe99$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!newsgate.newsserver.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4537f328.35659415@forums.borland.com> <4537f8f4$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bf0209e2cbabdd4a 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: <4537f328.35659415@forums.borland.com> <4537f8f4$1@newsgroups.borland.com> Subject: Re: convert a HWND to something I can see Date: Thu, 19 Oct 2006 15:31:25 -0700 Lines: 15 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: 69.169.4.232 Message-ID: <4537fe99$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1161297561 69.169.4.232 (19 Oct 2006 15:39:21 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!newsgate.newsserver.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail