🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WM_COPYDATA

#463
From: Remy Lebeau (TeamB)
Date: Fri, 07 Mar 2008 04:13
25 lines
1846 bytes
"Marshall Lawrence" <someone@microsoft.com> wrote in message 
news:47d0b606@newsgroups.borland.com...

> However, using FindWindow(NULL, "geoloc") returns the handle
> to the program that contains the 3rd form and if I use that handle in the 
> SendMessage() function, my message handler never fires

Then FindWindow() is not finding Form3's window to begin with.  It is 
finding another window that has the same caption.  Does your form have the 
same caption as the Application->Title property, by chance?

> and the programs hang because the message is not handled.

Not handling the message should not be causing any hangs.

> So, PROGRAM A-->3rd FORM-->starts the execution of -->PROGRAM B...
> PROGRAM B-->Executes and just before exiting-->SendMessage() to PROGRAM 
> A-->3rd FORM

It is not sending to the 3rd form, otherwise your handler would getting 
called.


Gambit 
Technical Details
Message-ID: <47d0c0d5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <47d0b606@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e373581945dbec23
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <47d0b606@newsgroups.borland.com>
Subject: Re: WM_COPYDATA
Date: Thu, 6 Mar 2008 20:13:04 -0800
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 75.83.29.61
Message-ID: <47d0c0d5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1204863189 75.83.29.61 (6 Mar 2008 20:13:09 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 1700