🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem setting a system wide hook. Help please?

#16072
From: Bruce Salzman
Date: Mon, 02 Jun 2003 22:06
19 lines
1462 bytes
"Spike" <vanoorspronk@not_hotmail.com.invalid> wrote in message
news:3edb1935$1@newsgroups.borland.com...

<snip>

> It looks like it runs OK (without errors that is), but it won't set
> the hook, because the HINSTANCE is NULL.

The line
   instanceHandle = &hinstDLL;
should be
   instanceHandle = hinstDLL;

I'd suggest defining STRICT in your project's Conditional Defines to help
catch misuse of handles/ints/addresses.

Regards,
Bruce
Technical Details
Message-ID: <3edbca72$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3edb1935$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,64ef2e065c89c8be
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-02 15:12:29 PST
From: " Bruce Salzman" <bruce@nospam.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3edb1935$1@newsgroups.borland.com>
Subject: Re: Problem setting a system wide hook. Help please?
Date: Mon, 2 Jun 2003 17:06:41 -0500
Lines: 21
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: 24.94.238.27
Message-ID: <3edbca72$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054591602 24.94.238.27 (2 Jun 2003 15:06:42 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail