Article View: borland.public.cppbuilder.nativeapi
Article #13997SetWindowsHookEx
From: Boguslaw Fries
Date: Tue, 02 Sep 2003 08:02
Date: Tue, 02 Sep 2003 08:02
24 lines
1412 bytes
1412 bytes
I have the following problem
I try to use ( I am newbie in this )
#define WH_KEYBOARD_LL 13
HHOOK KeyboardHandle;
LRESULT CALLBACK KeyboardProc( int nCode, WPARAM wParam, LPARAM lParam )
{
.....
}
KeyboardHandle = SetWindowsHookEx( WH_KEYBOARD_LL, KeyboardProc, NULL,
0 );
but compiler signals error:
[C++Fehler] vkeyinput.cpp(96): Cannot convert 'long (__stdcall
*)(int,unsigned int,long)' to 'int (__stdcall *)()'.
what is wrong?
Boguslaw Fries
Technical Details
Message-ID:
<3f544e99$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,765ef9c6fca8b990 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-02 01:21:28 PST From: "Boguslaw Fries" <B.Fries@luca-online.de> Newsgroups: borland.public.cppbuilder.nativeapi Subject: SetWindowsHookEx Date: Tue, 2 Sep 2003 10:02:32 +0200 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 217.225.26.224 Message-ID: <3f544e99$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062489753 217.225.26.224 (2 Sep 2003 01:02:33 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail