🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Messaging between applications

#14328
From: BlackFrancis
Date: Sat, 16 Aug 2003 04:00
51 lines
2623 bytes
Thankyou both.
I have decided to try to use
 LRESULT SendMessage(
    HWND hWnd, // handle of destination window
    UINT Msg, // message to send
    WPARAM wParam, // first message parameter
    LPARAM lParam  // second message parameter
   );
But for this I will need to be able to identify the target application
window and get a handle to it;
Any help here?

"Rodolfo Frino" <rodolfofrino@yahoo.com> wrote in message
news:3f3d028c@newsgroups.borland.com...
> Windows implementes IPC in different ways, some of them are
>
> 1. RPC
> 2. Windows sockets (TCP/IP)
> 3. Memory-map file
> 4. Windows Messages (SendMessage)
> 5. Windows atoms
> 6. Pipes
> 7. Mailslots
> 8. Shared memory
> 9. Semaphores
> 10. OLE
> 11. DDE (old method)
> 12. Clipboard
>
> Rodolfo
>
> "BlackFrancis" <george_f@nospam.com> wrote in message
> news:3f3c225a$1@newsgroups.borland.com...
> > Hi,
> > I've been hunting around on the web but can't find this anywhere;
> > Can anyone give an example of how to send a synchronous message from on
> > TApplication to another under Windows?  I have been looking into the
> > component messaging system and TMessage, but this seems more directed at
> > component authors, and the Help files aren't as usefull as I'd hoped.
> >
> > Some sample code showing how to send a message between two exes running
on
> > the same machine would be greatly appreciated!
> > Regards,
> > George
> >
> >
> >
> >
>
>
Technical Details
Message-ID: <3f3dac2f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f3c225a$1@newsgroups.borland.com> <3f3d028c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,45093fb5af02576b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-15 21:09:20 PST
Reply-To: "BlackFrancis" <areyouabot@toobad.com>
From: "BlackFrancis" <areyouabot@toobad.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f3c225a$1@newsgroups.borland.com> <3f3d028c@newsgroups.borland.com>
Subject: Re: Messaging between applications
Date: Sat, 16 Aug 2003 14:00:09 +1000
Lines: 53
Organization: Thievery Inc
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 203.113.243.71
Message-ID: <3f3dac2f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061006383 203.113.243.71 (15 Aug 2003 20:59:43 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail