Article View: borland.public.cppbuilder.nativeapi
Article #17431Remy Lebeau (TeamB)
From: Jim Donachiue
Date: Mon, 24 Mar 2003 20:15
Date: Mon, 24 Mar 2003 20:15
50 lines
2578 bytes
2578 bytes
Having problems with replying with Lotus Notes installled...
In any case, I must communicate both ways with VB app and I have the HWND.
I was under the impression I need to use:
const WM_JM_CTTR_COMM = RegisterWindowMessage("JobMasterExtMsgA");
struct TWM_JM_CTTR_Comm
{
unsigned Msg;
UINT wParam;
LONG lParam;
} ;
//MESSAGE LONG OnJobMasterExtMsgA (UINT wParam, LONG lParam);
//MESSAGE LONG OnJobMasterExtMsgA (TWM_JM_CTTR_Comm);
MESSAGE LONG OnJobMasterExtMsgA (TMessage &AMess);
BEGIN_MESSAGE_MAP
VCL_MESSAGE_HANDLER(WM_JM_CTTR_COMM, TMessage, OnJobMasterExtMsgA)
END_MESSAGE_MAP(TForm)
but when I compile I get an error E2313 Constant expression required for the
line:
VCL_MESSAGE_HANDLER(WM_JM_CTTR_COMM, TMessage, OnJobMasterExtMsgA)
Any ideas?
"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:
<3e7f677e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,cca25498022ba683,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-24 12:23:10 PST Reply-To: "Jim Donachiue" <jdonachiue@bjservices.ca> From: "Jim Donachiue" <jdonachiue@bjservices.ca> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Remy Lebeau (TeamB) Date: Mon, 24 Mar 2003 13:15:58 -0700 Lines: 52 Organization: BJ Services X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 199.185.250.210 Message-ID: <3e7f677e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1048536958 199.185.250.210 (24 Mar 2003 12:15:58 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail