Article View: borland.public.cppbuilder.nativeapi
Article #1141Re: IPC, using Application->OnMessage
From: Marc
Date: Sun, 28 Oct 2007 17:36
Date: Sun, 28 Oct 2007 17:36
50 lines
2602 bytes
2602 bytes
Hi Bob Thank you for your reply. > If in the future they will be on different computers, this won't work. This is OK as the two processes will run on the same computer. If not what alternative would you recommend? Using IP messaging ? > It is a BROADCAST just like radio or TV. > Your watching it doesn't stop others from viewing it too. > Every running (windowed) application on your machine will get your spam. I see. I helped myself right now in looking if the Msg.message + Msg.time is different before continuing... not very nice, but it helps. Rds Marc "Bob Gonder" <notbg@notmindspring.invalid> schrieb im Newsbeitrag news:9ig9i3hr3qf15n249d5dllfuf2a46upfs8@4ax.com... > Marc wrote: > >>I try to implement IPC between my two processes. > >>I use HWND_BROADCAST because in future the sender and receiver will be in >>two separate processes. > > If in the future they will be on different computers, this won't work. > >>If I run the application like this and press the button, I receive one >>OutputDebugString. This is what I expected. >> >>But when I create a second form, and place a TTimer component on it, I >>receive the OutputDebugString twice. > > Every top-level window (form) gets the message. > >>Is not the "Handled=true" statement supposed to prevent the message from >>being sent to another Window ? > > No. > It is a BROADCAST just like radio or TV. > Your watching it doesn't stop others from viewing it too. > Every running (windowed) application on your machine will get your spam. > >
Technical Details
Message-ID:
<4724c890@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4724b19d$1@newsgroups.borland.com> <9ig9i3hr3qf15n249d5dllfuf2a46upfs8@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4f22b81ff465f675 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Marc" <info@mawnet.com> From: "Marc" <info@mawnet.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4724b19d$1@newsgroups.borland.com> <9ig9i3hr3qf15n249d5dllfuf2a46upfs8@4ax.com> Subject: Re: IPC, using Application->OnMessage Date: Sun, 28 Oct 2007 18:36:01 +0100 Lines: 52 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 83.77.32.136 Message-ID: <4724c890@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1193592976 83.77.32.136 (28 Oct 2007 10:36:16 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail