Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DDE Execute

DDE Execute

Scheduled Pinned Locked Moved C / C++ / MFC
helpcom
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mustafa Demirhan
    wrote on last edited by
    #1

    Hi, In one of my programs, I am using DDE in order to run my program as the default program for some type of files. In my CWinApp class I added BOOL OnDDECommand(LPTSTR lpszCommand). When I double click on the file, everthing works fine if another instance of the program is not running. Double clicking runs the program and calls OnDDECommand. After that, if I do not close the program and double click on other files, everthing works fine again. The problem occurs when I run the program individually. After that, if I double click on a file, OnDDECommand method is never executed. Instead of that, my program gets the focus and the following error message comes out:

    Windows cannot find 'my_file_name'.
    Make sure that you have typed the name correctly and then try again.
    To search for a file, click the start button, and then click Search.

    This message is show by Windows Explorer. Not by my program. I dont know what the problem is. If no instance of the application is running, everthing works fine. Also, if i start the application by double clicking on an associated file evething works fine again. This happens only when I run the program without any files given as parameter and then double click on a file. I am looking forward to hearing for your suggestions. Please advise... Thanks for any helps in advance. Kind regards Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix

    They say I'm lazy but it takes all my time

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups