🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sending a message to a DLL ??

#4581
From: Remy Lebeau (TeamB)
Date: Fri, 13 Jan 2006 05:28
21 lines
1686 bytes
"David" <davids@unite.com.au> wrote in message
news:43c720fc$1@newsgroups.borland.com...

> I am using the WM_COPYDATA message to send data
> from the DLL to another app. I would like to send a message
> back from the app to the DLL if this is possible.

The only way to do that is if the DLL has its own HWND.  Even then, the
application, not the DLL, will likely be in control of the message queue for
the HWND since HWNDs are tied to threads, not modules.  If the application
thread does not have a message queue, the HWND will not be able to receive
messages at all.  In which case, the only way for the DLL to receive
messages is if the DLL runs the HWND in its own worker thread inside the
DLL.

What EXACTLY are you trying to accomplish in the first place?  Can you
provide an example?


Gambit
Technical Details
Message-ID: <43c73b61$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43c720fc$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e4786eb214cba813
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <43c720fc$1@newsgroups.borland.com>
Subject: Re: Sending a message to a DLL ??
Date: Thu, 12 Jan 2006 21:28:35 -0800
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <43c73b61$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1137130337 68.69.17.41 (12 Jan 2006 21:32:17 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail