🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Messages between DLL and Application

#14075
From: Remy Lebeau (TeamB)
Date: Mon, 25 Aug 2003 20:52
25 lines
1896 bytes
"Martin C" <martinc@aol.com> wrote in message
news:3f4a7447@newsgroups.borland.com...

> I there a way where I can send the data inside my dll structure
> to my application every time the Callback function of the hook
> is called ??

When you code the DLL, it should be setting asside a block of shared memory
during its initialization.  When the application installs the hook at
runtime, it should be placing its HWND into that memory (or passing it to
the DLL to place in the memory on its behalf).  Then all instances of the
DLL will have the HWND of your application with which to send messages to.
Otherwise, the DLL instances will have to look for the HWND manually using
FindWindow().  As for the actual copying of the data, have a look at the
WM_COPYDATA message.


Gambit


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/03
Technical Details
Message-ID: <3f4a770d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f4a7447@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,64add9c25ea7ead
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-25 14:02:07 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f4a7447@newsgroups.borland.com>
Subject: Re: Messages between DLL and Application
Date: Mon, 25 Aug 2003 13:52:23 -0700
Lines: 27
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.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f4a770d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061844749 207.175.226.26 (25 Aug 2003 13:52:29 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail