🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Windows message question

#13138
From: Martin C
Date: Tue, 28 Oct 2003 17:40
26 lines
1778 bytes
Hi Remy,

This is really good solution, I can get the HWND of the exe once its loaded,
but can you give me more information on how to send messages from the dll to
the exe using the exe HWND.

BR


"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:3f9ea71e$1@newsgroups.borland.com...
>
> "Martin C" <martinc@aol.com> wrote in message
> news:3f9e672d@newsgroups.borland.com...
>
> > I used to use (FindWindow("", 0);)  function to return the handle
> > of the exe window where I need to send the message
>
> A better approach would be to simply have the EXE pass its HWND to the DLL
> when it is loaded, then the DLL knows exactly where to send messages, it
> doesn't have to go finding the HWND manually first.
>
>
> Gambit
>
>
Technical Details
Message-ID: <3f9eaa27@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f9e672d@newsgroups.borland.com> <3f9ea71e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,8012e723bc3abeb
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-28 09:45:07 PST
From: "Martin C" <martinc@aol.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f9e672d@newsgroups.borland.com> <3f9ea71e$1@newsgroups.borland.com>
Subject: Re: Windows message question
Date: Tue, 28 Oct 2003 09:40:53 -0800
Lines: 28
Organization: V Safe
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: 81.10.4.238
Message-ID: <3f9eaa27@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067362855 81.10.4.238 (28 Oct 2003 09:40:55 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail