Article View: borland.public.cppbuilder.nativeapi
Article #509Re: How to use SetWindowsHookEx?
From: Minas
Date: Thu, 20 Mar 2008 00:27
Date: Thu, 20 Mar 2008 00:27
12 lines
1248 bytes
1248 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote: > You need to type-cast the function pointer that you are passing in: > > hook = SetWindowsHookEx(WH_KEYBOARD, (HOOKPROC) &KeyboardProc, > hinstance, NULL); just a small comment on (HOOKPROC) &KeyboardProc , the reference operator & doesn't need since the function name is pointer . Best Regards Minas
Technical Details
Message-ID:
<47e1ae1c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<47e0a645$1@newsgroups.borland.com> <47e14537$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9f887c902c1804e1 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Minas" <no email> Newsgroups: borland.public.cppbuilder.nativeapi References: <47e0a645$1@newsgroups.borland.com> <47e14537$1@newsgroups.borland.com> Subject: Re: How to use SetWindowsHookEx? Date: Thu, 20 Mar 2008 02:27:11 +0200 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 212.251.124.167 Message-ID: <47e1ae1c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1205972508 212.251.124.167 (19 Mar 2008 17:21:48 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail