🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

HWND_BROADCAST handle

#4322
From: Andrew Fedoseev
Date: Tue, 14 Feb 2006 20:42
14 lines
1510 bytes
Hello. I defined a new windows message as
WM_MY_MESSAGE   = RegisterWindowsMessage("WM_MY_MESSAGE") in two 
applications that must work at once. One application intended to send this 
message  and another to catch.
The problem is that i cant catch this message if it has been sent with 
HWND_BROADCAST parameter in SendMessage (...) or PostMessage(...) function.

The mainform class of receiving application is populated with begin_message 
macros (i used WndProc functions as well) but no result comes out of it.

The broadcast message seems to be not working.
Where is the problem?

Andrew. 
Technical Details
Message-ID: <43f23f8c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,acf9898819c81cc3,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrew Fedoseev" <andrewfx@mail.ru>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: HWND_BROADCAST handle
Date: Tue, 14 Feb 2006 23:42:58 +0300
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 85.30.227.127
Message-ID: <43f23f8c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1139949452 85.30.227.127 (14 Feb 2006 12:37:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail