Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 662193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:21:05+00:00 2026-05-13T23:21:05+00:00

I found Delphi Inter Process Communication (IPC) using SendMessage with Google. Here’s a piece

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:21:05+00:00Added an answer on May 13, 2026 at 11:21 pm

    One obvious solution is for the EXE to give the DLL the handle to a window that it should send messages to. The EXE will call a function in the DLL, so that’s the perfect time to provide a window handle. Remove all the guesswork. (For that matter, the EXE could just give the DLL the address of a function to call and skip messages altogether.)

    Another solution is to broadcast the message. Use the special window handle HWND_BROADCAST when you call SendMessage and the message will go to all the top-level windows in the system. Only other windows that have registered the same message ID will do anything when they receive that message; the others should simply and safely ignore it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I copied some Delphi code from one project to another, and found that it
I am using Delphi 5.0 and i am getting error 'StrUtils.dcu not found' while
I'm making an application in C#, based on Delphi (converting code), but I found
Using Delphi 7 I am reading from a serial port. The read is always
Using Delphi 2009 and IXMLDOMDocument2 I receive An invalid character was found in text
I am trying to port some code from Delphi to C# and I have
I found a great explanation about the new RTTI in Delphi ,but I don't
When looking for which version of Delphi 2010 to buy, we found the following
We want to use Unicode with Delphi 2009 and Interbase, and found that to
Found this while reading the Neo4j manual, specifically here , I found the sentence:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.