🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to use SetWindowsHookEx?

#501
From: Bob Gonder
Date: Wed, 19 Mar 2008 14:14
10 lines
1241 bytes
amol wrote:

>"Type mismatch in parameter 'lpfn' (wanted 
>	'int(__stdcall *)()'
>, got
>	'long(__stdcall *) (int,unsigned int,long)')"

>hook = SetWindowsHookEx(WH_KEYBOARD,KeyboardProc,hinstance,NULL);

hook = SetWindowsHookEx(WH_KEYBOARD,(HOOKPROC)KeyboardProc,hinstance,NULL);
Technical Details
Message-ID: <1r72u3dqqt2i3nsep370efabi4u2pgm26n@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <47e0a645$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: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to use SetWindowsHookEx?
Date: Wed, 19 Mar 2008 07:14:40 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <1r72u3dqqt2i3nsep370efabi4u2pgm26n@4ax.com>
References: <47e0a645$1@newsgroups.borland.com>
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: 69.69.81.107
X-Trace: newsgroups.borland.com 1205936076 69.69.81.107 (19 Mar 2008 07:14:36 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail