Home > General > Ddeexec

Ddeexec

Not the answer you're looking for? Why doesn't find . -delete delete current directory? Specify the string as the command argument. Comment 29 Scott Garfinkle 2007-06-01 12:53:10 PDT Others are reporting the same problem to google (e.g.

windows winapi dde share|improve this question asked Oct 28 '11 at 15:11 Paul Hollingsworth 5,58383760 1 Are you sure MS Word uses DDE and not just telling the previous instance Special thanks goes to DJDXlk for the second method of the fix. The modern way to do this is with a global mutex. set filename [file normalize [lindex $argv 0]] dde eval DdeEdit "Open(\"$filename\")" exit 0 } else { eval DdeEdit::DdeEdit $argv } }Category Windows HomeRecent changesHelpWhoAmI/LogoutCreate new pageRandom pagePrevious pageNext pageAdd commentsEditHistoryEdit summaryReferences

Yes No Additional feedback? 1500 characters remaining Submit Skip this Thank you! HKEY_CLASSES_ROOT    MyProgram.1       (Default) = MyProgram Application       Shell          (Default) = doit          open             command                (Default) = C:\MyDir\MyProgram.exe "%1"             ddeexec                (Default) = Open("%1")                application                   (Default) = MyProgram     Show: Inherited Protected Print Export timeout is specified in milliseconds. (1000 milliseconds = 1 second). Based on the registry settings discussed above, this is the command to open a Word document in WordViewer: START /MIN "" "C:\PROGRA~1\MICROS~2\OFFICE11\WORDVIEW.EXE" /n /dde CMCDDE.EXE WordView System "[REM _DDE_Direct][FileOpen(\"WordDocument.doc\")]" CMCDDE supports

You can open a file in this application by running either wish dde-edit.tcl or once you have run wish dde-edit.tcl -install to setup the file association, you can just do Since you didn't show us your code it's hard to help. –David Heffernan Oct 28 '11 at 17:06 add a comment| 2 Answers 2 active oldest votes up vote 5 down If there is no application subkey, the default value of the verb's command subkey is used as the application name. Even if you use a mutex it should not be global (Global\ prefix), it should be per user (You don't want to prevent users in other sessions running your app) –Anders

Otherwise it returns 0. I have no idea what could be different about your system... What's the fastest way to generate a 1 GB file containing only random numbers? Discover More What is Tk?

Sci-fi book about people living in a giant bubble in space How to concentrate during conference talks where the quality of the presentation is poor? See Also ddeadv, ddeinit, ddepoke, ddereq, ddeterm, ddeunadv ddeadvddeget FAQ • Search • Profile • Log in to check your private messages • Log in set filename [file normalize [lindex $argv 0]] dde eval DdeEdit "Open(\"$filename\")" exit 0 } else { eval DdeEdit::DdeEdit $argv } }Category Windows HomeRecent changesHelpWhoAmI/LogoutCreate new pageRandom pagePrevious pageNext pageAdd commentsEditHistoryEdit summaryReferences Comment 30 Vadim Rapp 2007-06-24 20:37:15 PDT I have absolutely the same behavior as Scott, and it started about at the same time as his.

To add, delete, or modify this preference, you will need to edit your configuration — do not edit this article. http://kb.mozillazine.org/Advanced.system.supportDDEExec You can specify both application and topic and the command (in dde parlance - the item) to be called.The following is a sample application that runs a dde server and associates This argument is not used for many applications. If there is no topic subkey, System is used as the topic name.

If I run ShellExecute.exe and our "DDE server" app is already up, it works correctly. Hot Network Questions TikZ:Anchor current page north west isn't where expected Unity JS to C# conversion - Incomplete list of public variables in Inspector On which physical drive is this logical DDE_run I'm still trying to figure out DDE_run.exe's syntax. classexec.exe worddocument.doc --action print will generate an error message, because my default program to open .DOC files is the Word Viewer, which doesn't have a registered print command.

The default is Word Viewer. Comment 4 Benjamin Smedberg [:bsmedberg] 2006-09-19 00:09:01 PDT Do we need to support DDEExec at all? What you need is to fix your code. How to Associate Verbs with DDE Commands Invoking a verb ordinarily launches the application that is specified by the verb's command subkey.

ifexec. If the key HKEY_CLASSES_ROOT\FileType\shell\print\ddeexec does not exist, then the default value registered in HKEY_CLASSES_ROOT\FileType\shell\print\command is the full print command, and it can be used in batch files. If the Ifexec key is present it sends that value instead.

Comment 33 Robert Strong [:rstrong] (use needinfo to contact me) 2007-10-16 10:54:51 PDT Regretfully it isn't as simple as just not adding these keys.

So, this is very similar to how we work today when the app is already running. If I would have had Microsoft Office installed, Word would have been the default program to print .DOC files, and thus the ClassExec command would have used Word to print the When using DDE the shell assumes your DDE server is up and running before you start your message loop... This article describes the preference advanced.system.supportDDEExec.

Ziesemer 2007-10-16 09:23:11 PDT Same issues here, also limited to the same timeframe. You can open a file in this application by running either wish dde-edit.tcl or once you have run wish dde-edit.tcl -install to setup the file association, you can just do Comment 25 Robert Strong [:rstrong] (use needinfo to contact me) 2007-06-01 12:13:57 PDT Scott, that should not happen and hasn't happened or been reported by anyone else. it's clear from looking at the registry keys, and numerous articles. –Paul Hollingsworth Oct 28 '11 at 15:38 1 Source code for ShellExecute is not what you need.

see bug 353353 for the unused nsIObserver impl. This code requires a DDE # package that implements TIP 120 - such as the one in Tcl 8.5a0 # # $Id: 8940,v 1.9 2006-01-25 07:00:30 jcw Exp $ package require Starting with 2.0.0.2 release, every time I upgrade Firefox I have to go and delete the ddeexec entries. Setting the preference to false may cause trouble with that plugin under Windows.

The registered "Print" command's command line for any file type can be found under HKEY_CLASSES_ROOT\FileType\shell\print\command as the default value (@="..."). Used in options processing. # proc ::DdeEdit::Pop {varname {nth 0}} { upvar $varname args set r [lindex $args $nth] set args [lreplace $args $nth $nth] return $r } # ------------------------------------------------------------------------- # http://lxr.mozilla.org/mozilla/source/browser/components/shell/src/nsWindowsShellService.cpp#306 Comment 1 Robert Strong [:rstrong] (use needinfo to contact me) 2006-09-17 17:42:58 PDT btw: this applies to all versions of Windows and not just Vista Comment 2 :Gavin Sharp [email: It's been used for plugin-related functions, as well as for determining how tabs and windows should open.

It is a ridiculously obsolete way of doing that that causes all kinds of problems and hangs and depends on the registry. This preference determines whether the subkeys are set while Mozilla is running and then removed upon exiting. [edit]Possible values and their effects [edit]True When started, Mozilla will check to see if Miscellaneous Tweaks Link Speed Test Web Stuff Conversions My Photo Galleries About This Site Disclaimer News FAQ Search What's New Objective Site Policy Your Preferences Credits The Making Of... classexec.exe worddocument.doc --action print --class .wpd converts/opens worddocument.doc in WordPerfect (the program associated with .WPD files), prints the document to the default printer, and keeps WordPerfect opened.