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 8108235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:02:53+00:00 2026-06-06T01:02:53+00:00

I have a DDE client app which connects to the DDE server app by

  • 0

I have a DDE client app which connects to the DDE server app by using SendMessage() WINAPI. Following the SendMessage() call which gets hang while requesting connection to the DDE Server. Both DDE Client app and server app are in VC++.

SendMessage((HWND) -1,WM_DDE_INITIATE,(WPARAM) m_hWnd,MAKELPARAM(hService,hTopic));

Now what SendMessage() is doing that it is getting hanged? Basically it is broadcasting WM_DDE_INITIATE window message to all the windows in the system. The window (DDE server) for which it is intended should process the message and should reply with an acknowledgment. Once acknowledgment is received SendMessage() call is completed and client is connected.

In our case it is getting hang and is never returning back, as a result we have DDE Client application getting hang.

I searched on the net and found that using SendMessage() to broadcast is usually not recommended as it gets hang many times.

I have code for the DDE client app and DDE server app with me.

Let me know is there some way to retrieve the DDE server window handle or some way to assign a unique name to the DDE server window .

By doing this, i believe at the client end i can retrieve the window handle of DDE server from unique name (using FindWindow() winapi) and instead of broadcasting using SendMessage() I can send the message directly to DDE server using window handle.

If you feel above method of getting window handle of DDE server is not possible or not recommended, then do let me know some other method to use SendMessage() winapi to connect to DDE Server.

  • 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-06-06T01:02:55+00:00Added an answer on June 6, 2026 at 1:02 am

    Use SendMessageTimeout instead of SendMessage so the hung apps will not hang you.

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

Sidebar

Related Questions

I'm talking to a DDE server I don't have very much documentation for using
I have a CRM application (GoldMine) that acts as a DDE Server and allows
We have windows server 2008. Whenever we try to fax a PDF document using
We have a server that securely sends a key to the client via a
I have the following code which is suppose to search for the letter 'e'
Have you ever tried learning a language while on a project? I have, and
We have been using ddeexec registry entries to handle opening a design from Explorer.
I'm using Visual Studio 2008 and SQL Server 2008. I would like .sql files
Have following listener for keyboard ArrowDown event(it's key code is 40 ): window.onload =
I have a DropDownList which I initialize in a function called CreateChildControls before adding

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.