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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:13:05+00:00 2026-05-15T03:13:05+00:00

We have been using ddeexec registry entries to handle opening a design from Explorer.

  • 0

We have been using ddeexec registry entries to handle opening a design from Explorer.

MSDN (about 2/3 way into article) indicates that ddeexec is deprecated, and applications should use IDropTarget instead.

What is unclear to me is how that this actually is supposed to work..

e.g. If I have Foo.exe, which is intended to handle .foo files, what does the registry look like?

HKCR\.foo
 (default) = Foo.foo.1

HKCR\Foo.foo.1
 shell
  open
   command
    (default) = ?????

If the command is set to the obvious:

"C:\Program Files\Foo Corp\Foo.exe" "%1" 

then Foo.exe is launched each time the user double clicks on, or chooses open from the context menu for a .foo file.

However, that means a separate instance of Foo.exe is launched for every file that the user attempts to launch. YUCK.

I can certainly write custom code to somehow pass on the filename from the 2nd instance of Foo.exe back to the first instance of Foo.exe and then exit… but then I’m writing a fair bit of custom code.

DDE used to handle this gracefully (enough) by asking the already running first instance of Foo.exe to open the specified file. This made it easy to have an MDI app skillfully handle opening multiple documents, where each one was opened within the one instance of Foo.exe.

If DDE is deprecated, then what is the preferred mechanism? Our app makes much more sense as an MDI app – we certainly don’t want several instances of Foo.exe running (that would only annoy our users). I certainly don’t want to have to write a new Foo-Shim.exe which looks for the real instance of Foo.exe, and uses some custom mechanism to pass the filename being opened to it. (I can’t just use Foo.exe for this purpose, because Foo.exe is big, and slow to load, and requires an activation security code which is counted per instance, and so may refuse to start up if you’re at your maximum concurrent user limit).


I don’t see anything in IDropTarget which looks like it has much of anything to do with this (common) scenario.

Does anyone know what MS intended here?

  • 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-15T03:13:05+00:00Added an answer on May 15, 2026 at 3:13 am

    When you use IDropTarget, it simulates a drag&drop (XP and later, you must use DDE or whatever on older systems)

    As luck would have it, Raymond Chen recently did a blog post about IDropTarget with sample code.

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

Sidebar

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.