IPC using SendMessage but receiver have random window caption

Posted by iira on Stack Overflow See other posts from Stack Overflow or by iira
Published on 2010-03-16T04:04:56Z Indexed on 2010/03/16 5:06 UTC
Read the original article Hit count: 558

Filed under:
|

I found "Delphi Inter Process Communication (IPC) using SendMessage" with Google.

Here's a piece of the code from Sender to send a message for Receiver :

procedure TfrmClient.FormCreate(Sender: TObject);
begin
  MyMsg := RegisterWindowMessage('MyMessage');
  ServerApplicationHandle := FindWindow('TApplication', 'Project1');
end;

The problem is my receiver have random caption name. So how can I send a message to receiver? Any idea? My Sender is a DLL and my receiver is Exe.

© Stack Overflow or respective owner

Related posts about delphi

Related posts about ipc