Article View: borland.public.cppbuilder.nativeapi
Article #14329Re: Messaging between applications
From: BlackFrancis
Date: Sat, 16 Aug 2003 05:20
Date: Sat, 16 Aug 2003 05:20
60 lines
2870 bytes
2870 bytes
Actually don't worry - I found EnumWindows! "BlackFrancis" <areyouabot@toobad.com> wrote in message news:3f3dac2f@newsgroups.borland.com... > 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:
<3f3dbef5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f3c225a$1@newsgroups.borland.com> <3f3d028c@newsgroups.borland.com> <3f3dac2f@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 22:41:14 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> <3f3dac2f@newsgroups.borland.com> Subject: Re: Messaging between applications Date: Sat, 16 Aug 2003 15:20:14 +1000 Lines: 62 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: <3f3dbef5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1061011189 203.113.243.71 (15 Aug 2003 22:19:49 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail