🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: convert a HWND to something I can see

#2662
From: poojo hackma
Date: Fri, 26 Jan 2007 17:43
24 lines
1662 bytes
Is he just wanting the handle address?
AnsiString addy;
addy.Format("Window Address: %x", &hwnd);

"Thomas Maeder [TeamB]" <maeder@glue.ch> wrote in message 
news:m23b9kx71z.fsf@glue.ch...
> 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: <45ba3d84$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4537f328.35659415@forums.borland.com> <m23b9kx71z.fsf@glue.ch>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bf0209e2cbabdd4a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "poojo hackma" <poojo.com/mail>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4537f328.35659415@forums.borland.com> <m23b9kx71z.fsf@glue.ch>
Subject: Re: convert a HWND to something I can see
Date: Fri, 26 Jan 2007 11:43:12 -0600
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-Antivirus: avast! (VPS 000706-2, 01/25/2007), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 12.191.89.68
Message-ID: <45ba3d84$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1169833348 12.191.89.68 (26 Jan 2007 09:42:28 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail