🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to use SetWindowsHookEx?

#504
From: Remy Lebeau (TeamB)
Date: Wed, 19 Mar 2008 16:54
13 lines
1238 bytes
"amol" <kolekar.amol@gmail.com> wrote in message 
news:47e0a645$1@newsgroups.borland.com...

> I am getting following error messages while using SetWindowsHookEx:

You need to type-cast the function pointer that you are passing in:

    hook = SetWindowsHookEx(WH_KEYBOARD, (HOOKPROC) &KeyboardProc, 
hinstance, NULL);


Gambit 
Technical Details
Message-ID: <47e14537$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <47e0a645$1@newsgroups.borland.com>
Subject: Re: How to use SetWindowsHookEx?
Date: Wed, 19 Mar 2008 09:54:22 -0700
Lines: 15
Organization: Lebeau Software
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; Original
NNTP-Posting-Host: 207.178.157.90
Message-ID: <47e14537$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1205945655 207.178.157.90 (19 Mar 2008 09:54:15 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail