🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: convert a HWND to something I can see

#2958
From: Bruce Salzman
Date: Thu, 19 Oct 2006 22:15
21 lines
1350 bytes
<DeKayA@bellsouth.net> wrote in message 
news:4537f328.35659415@forums.borland.com...
>
> Hi;
>
> 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
>

int handle = static_cast<int>(hwnd);

-- 
Bruce 
Technical Details
Message-ID: <4537f8f4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!newsfeed.news2me.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <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
From: " Bruce Salzman" <bruce@nospam.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4537f328.35659415@forums.borland.com>
Subject: Re: convert a HWND to something I can see
Date: Thu, 19 Oct 2006 17:15:18 -0500
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 24.94.228.231
Message-ID: <4537f8f4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1161296116 24.94.228.231 (19 Oct 2006 15:15:16 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!newsfeed.news2me.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail