Re: How to open a file in an active application by duble-clicking on the file name

From: Marc Rohloff (marc)
Date: 10/22/03

  • Next message: Michael Baytalsky: "Re: Delphi application & windows resources"
    Date: Wed, 22 Oct 2003 14:48:44 -0400
    
    

    On Wed, 22 Oct 2003 10:45:03 -0700, P.Macholda<pm@voyta.com> said ...
    > When I click on a file with my own registered extension in the "Exploring
    > documents" window, a new instance of my program is always invoked. How do I
    > make the file to open in the same running program?
    > Could you please help?

    You need to set up your application as a DDE Server and let it handle a
    macro (command). The macro must open a file when receieved.

    You then need to consider the shell entry of the registry with the
    DDEExec subitems to call this macro appropriately. (Look at some other
    apps to see what they do)

    Marc


  • Next message: Michael Baytalsky: "Re: Delphi application & windows resources"