Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: rebol protocol

From: bry:itnisk at: 13-Dec-2002 13:30

>What's going on is that reb:c:\some.r won't load straight in rebol.exe, >am uncertain why this should be since other exe's can be passed stuff >this way. >There's sure to be some underlying logic why this is, I have some ideas >but don't want to express them yet as they are somewhat vague and >undeveloped.
It's as I thought, the command key in the registry indicates that something is to be opened via the commandline. Most protocols are interpreted via command but there are other ways, as well as complementary ways, basically you can pass various verbs (as in shell verbs) via the protocol by having a DDEEXEC key under the registry. As a general rule ddeexec is used for files and not for protocols but in fact a ddeexec key can be used with a protocol and the protocol can thereby have verbs associated with it just as you would have with a file (Open is a common verb that you will find when you right click, just in case anyone is not familiar with the windows shell). If one looks at HKEY_CLASSES_ROOT\mhtmlfile then there's an example of using this key. A ddeexec key tells the shell how to process Dynamic Data Exchange http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/w inui/windowsuserinterface/dataexchange/dynamicdataexchange.asp here's a technical article on DDE http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndynex /html/msdn_ddeexec.asp Am personally not to familiar with the subject of DDE it being lower level than I like to go. The question would be if Rebol has the possibility of running a DDE conversation? If so the three keys under ddeexec would be: Application Set the default value of this subkey to the application name to be used to establish the DDE conversation. If there is no application subkey, the default value of the verb's command subkey is used as the application name. Topic Set the default value of this subkey to the topic name of the DDE conversation. If there is no topic subkey, System is used as the topic name. ifexec Set the default value of this subkey to the DDE command to be used if DDE conversation cannot be initiated. When initiation fails, the application specified by the default value of the verb's command subkey is launched. If an ifexec key exists, its default value will then be used as the DDE command. If there is no ifexec subkey, the default value of the ddeexec key will be used again as the DDE command.