Article View: borland.public.cppbuilder.nativeapi
Article #4486Re: Sending a message to a DLL ??
From: David
Date: Sat, 14 Jan 2006 01:36
Date: Sat, 14 Jan 2006 01:36
40 lines
2396 bytes
2396 bytes
Actually I just want to send a user initiated reset flag back to the DLL so that it can start a certain procedure from the beginning. HOST APP + DLL <--------- OTHER APP SENDS FLAG TO THE DLL The host application would have its own message queue but unfortunatelty I dont have access to it. In the past I have used some visual components within the DLL with limited success but have removed them because it wasn't 100% reliable on all machines I used it on. regards david "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:43c73b61$1@newsgroups.borland.com... > > "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:
<43c8550e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.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-mailReferences:
<43c720fc$1@newsgroups.borland.com> <43c73b61$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: "David" <davids@unite.com.au> Newsgroups: borland.public.cppbuilder.nativeapi References: <43c720fc$1@newsgroups.borland.com> <43c73b61$1@newsgroups.borland.com> Subject: Re: Sending a message to a DLL ?? Date: Sat, 14 Jan 2006 12:36:35 +1100 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 211.26.206.233 Message-ID: <43c8550e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1137202446 211.26.206.233 (13 Jan 2006 17:34:06 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.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