Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using send message

2 views
Skip to first unread message

Jeremiah

unread,
Jun 9, 2000, 3:00:00 AM6/9/00
to
I have 2 applications communicating right now, with one using
findwindow to find the other's handle. Then I use sendmessage to send 2
parameters for a function in the receiving application. Every thing
works well so far, and I even have the recieving application reply.
What I need to know is how I can have the recieving application exctract
the 2 parameters that it needs from the sendmessage, and how to get
sendmessage to send to parameters at once. Unfortunately, using two
sendmessages is out of the question. Does anyone have a solution?


Wayne Niddery (TeamB)

unread,
Jun 9, 2000, 3:00:00 AM6/9/00
to
Jeremiah wrote in message <39419D40...@worldnet.att.net>...

SendMessage / PostMessage take 4 parameters, the last two can be
anything you want for your custom message, e.g:

SendMessage(OtherApp.Handle, um_MyMessage, 5, 10);

In the other app it will receive it in a procedure such as:

procedure TSomeForm.MyMessage(var msg: TMessage);
begin
if msg.WParam = 5 and msg.LParam = 10 then begin
// whatever...
end;
end;

--
Wayne Niddery - WinWright Consulting
RADBooks - http://members.home.net/wniddery/
You have a Right to Free Speech, but not the right to make me listen,
nor to use my property as a soapbox.


0 new messages