Article View: borland.public.cppbuilder.nativeapi
Article #2960Re: convert a HWND to something I can see
From: Thomas Maeder [TeamB]
Date: Thu, 19 Oct 2006 22:41
Date: Thu, 19 Oct 2006 22:41
18 lines
1482 bytes
1482 bytes
DeKayA@bellsouth.net writes: > I am trying to convert a windows handle to something I can display in > a text box. > > > > int handle = hwnd; //this doesn't compile > > It gives me an error that it cannot convert type void to type int That doesn't sound plausible. Isn't it from void * to int? Anyway; something like reinterpret_cast<unsigned long>(hwnd) should work.
Technical Details
Message-ID:
<m23b9kx71z.fsf@glue.ch>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4537f328.35659415@forums.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
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: convert a HWND to something I can see
References: <4537f328.35659415@forums.borland.com>
From: maeder@glue.ch (Thomas Maeder [TeamB])
Organization: TeamB
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobr p]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
Date: Fri, 20 Oct 2006 00:41:12 +0200
Message-ID: <m23b9kx71z.fsf@glue.ch>
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)
Cancel-Lock: sha1:EWn92kkhPQP3xSVqA3D9QRGo/LM=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 84.73.158.25
X-Trace: newsgroups.borland.com 1161297671 84.73.158.25 (19 Oct 2006 15:41:11 -0700)
Lines: 18
X-Authenticated-User: tmaeder
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail