DDE Execute
-
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