Article View: borland.public.cppbuilder.nativeapi
Article #12426Re: why HWND type in win32 prototypes is void *
From: Alan Bellingham
Date: Wed, 03 Dec 2003 22:08
Date: Wed, 03 Dec 2003 22:08
19 lines
1504 bytes
1504 bytes
dESFasado <nospame@anymore> wrote:
>why HWND handle in win32 API function prototypes are void *???
What would you like it to be?
Actually, you're only partially right. If you #define STRICT, then it's
this:
struct HWND__ { int unused; };
typedef struct HWND__ *HWND;
(The unused member _is_ unused, you're not supposed to use it.)
Alan Bellingham
--
Me <url:mailto:alanb@episys.com> <url:http://www.doughnut.demon.co.uk/>
ACCU - C, C++ and Java programming <url:http://accu.org/>
The 2004 Discworld Convention <url:http://dwcon.org/>
Technical Details
Message-ID:
<penssvo29c4fjkdkpp4nft2uip9kucfv5j@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<oprzmkrdfi3sxi43@localhost>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,feb93522dc1d50c,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-03 14:09:55 PST From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: why HWND type in win32 prototypes is void * Date: Wed, 03 Dec 2003 22:08:28 +0000 Reply-To: alanb@episys.com Message-ID: <penssvo29c4fjkdkpp4nft2uip9kucfv5j@4ax.com> References: <oprzmkrdfi3sxi43@localhost> X-Newsreader: Forte Agent 1.93/32.576 English (American) 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 1070489308 62.49.31.105 (3 Dec 2003 14:08:28 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail