🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#16079
From: Spike
Date: Tue, 03 Jun 2003 09:57
33 lines
2042 bytes
 Bruce Salzman wrote:
> "Spike" <vanoorspronk@not_hotmail.com.invalid> wrote:
>
> <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;

Hmm, I already had this, but due to not working code and me goind
desperate I tried some things with it. I forgot to change it back to
the right one. Anyways, it still doesn't work...

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

;o) I'm kinda new to C++. I used Java before. I guess you advise me to
add "#define STRICT" on top of the page, is that correct? Still
nothing...

The strange thing is: when I set a breakpoint at "instanceHandle =
hinst;" or anywhere else in the DLLEntryPoint it does not break, so it
isn't even being called yet. How do I get it to load?

By the way, thanks for your reply...
-- 
Spike

while (!asleep()) sheep++;
Technical Details
Message-ID: <3edc7108@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!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3edb1935$1@newsgroups.borland.com> <3edbca72$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-03 03:03:55 PST
From: "Spike" <vanoorspronk@not_hotmail.com.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3edb1935$1@newsgroups.borland.com> <3edbca72$1@newsgroups.borland.com>
Subject: Re: Problem setting a system wide hook. Help please?
Date: Tue, 3 Jun 2003 11:57:45 +0200
Lines: 35
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: 130.89.161.107
Message-ID: <3edc7108@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054634248 130.89.161.107 (3 Jun 2003 02:57:28 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail