Article View: borland.public.cppbuilder.nativeapi
Article #1002Re: IPC, using Application->OnMessage
From: Marc
Date: Tue, 30 Oct 2007 22:12
Date: Tue, 30 Oct 2007 22:12
47 lines
2414 bytes
2414 bytes
Hi Gambit As per my last post I now use ICS and implemented some TCP messages instead. This works OK. I finally got the API messages to work by filtering them according to the Windows they were sent (msg.hwnd), to make sure that I only read a message once. The TTimer didn't do anything, it was just a test installation I used to try to understand the API messaging. Rds Marc "Remy Lebeau (TeamB)" <no.spam@no.spam.com> schrieb im Newsbeitrag news:4726154f$3@newsgroups.borland.com... > > "Marc" <info@mawnet.com> wrote in message > news:4724b19d$1@newsgroups.borland.com... > >> I use HWND_BROADCAST because in future the >> sender and receiver will be in two separate processes. > > That does not necessarily mean that HWND_BROADCAST is the best choice. It > would be better if the sender knew ahead of time the HWND that the > receiver is actually using to receive messages with. > >> But when I create a second form, and place a TTimer component on it, >> I receive the OutputDebugString twice. If I place two TTimer component >> on it, I receive the OutputDebugString three times. > > What is your TTimer actually doing? > >> The second form is not event referenced in my first form. > > It doesn't have to be. > >> Curious enough this does not happen with a TButton component, >> so it depends on the component I place on this second form. > > What component are you putting on the second form to reproduce the > problem? > > > Gambit >
Technical Details
Message-ID:
<4727ac4b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4724b19d$1@newsgroups.borland.com> <4726154f$3@newsgroups.borland.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> <4726154f$3@newsgroups.borland.com> Subject: Re: IPC, using Application->OnMessage Date: Tue, 30 Oct 2007 23:12:07 +0100 Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 83.76.0.6 Message-ID: <4727ac4b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1193782347 83.76.0.6 (30 Oct 2007 15:12:27 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail