🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Communication between applications using "RegisterWindowMessage" and "SendMessage"

#17429
From: Remy Lebeau (TeamB)
Date: Mon, 24 Mar 2003 20:07
21 lines
1772 bytes
"Jim Donachiue" <jdonachiue@bjservices.ca> wrote in message
news:3e7f6162$1@newsgroups.borland.com...

> I am using C++ Builder version 4 and I am trying to
> cummunicate with a VB app.

Communication is what way exactly?  Will you be sending the message to the
VB app, or the other way around?  Please be more specific.

If the former, than do you have the HWND for the VB app?  You'll need to
obtain that because you can use SendMessage().  If you do have it, then just
call RegisterWindowMessage() and pass the return value as the uMsg parameter
of SendMessage().

If the latter, then you need to call RegisterWindowMessage() at program
startup, store the return value to a variable, then have your form override
the inherited WndProc() method to test messages for that value.


Gambit
Technical Details
Message-ID: <3e7f634e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e7f6162$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ff266cc1dd01230d
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-24 12:04:04 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e7f6162$1@newsgroups.borland.com>
Subject: Re: Communication between applications using "RegisterWindowMessage" and "SendMessage"
Date: Mon, 24 Mar 2003 12:07:15 -0800
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3e7f634e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048535886 207.175.226.26 (24 Mar 2003 11:58:06 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail