Article View: borland.public.cppbuilder.nativeapi
Article #8420Re: Communication between two applications
From: Remy Lebeau (TeamB)
Date: Sat, 30 Oct 2004 18:22
Date: Sat, 30 Oct 2004 18:22
20 lines
1751 bytes
1751 bytes
"Stefano Bonifazi" <stefboombastic@tele2.it> wrote in message news:41836d35@newsgroups.borland.com... > I failed to get it with FindWindow, or better I failed to get an > handle to the MainForm of Your receiver application whose > message handler I wrote belongs to ... Then you are doing something wrong in your code, because it is quite easy to use FindWindow() to get the MainForm window. > My workaround has been to get that handle by enumerating > all the top level windows by using EnumWindows and checking > for the proper Window Class inside its callback (for me "TForm2") ... See my comments in the other discussion regarding why you should not be using the default names for your forms. Gambit
Technical Details
Message-ID:
<4183db9f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41824B51.804A82A5@ulb.ac.be> <41827ab9@newsgroups.borland.com> <41836d35@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e336fb05149be70e X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41824B51.804A82A5@ulb.ac.be> <41827ab9@newsgroups.borland.com> <41836d35@newsgroups.borland.com> Subject: Re: Communication between two applications Date: Sat, 30 Oct 2004 11:22:20 -0700 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4183db9f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1099160479 68.69.17.41 (30 Oct 2004 11:21:19 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail