How to load a document into an existing instance of an application via ShellExecute() ?
-
Hi, I'm writing an application supporting MDI. In http://www.codeproject.com/useritems/System\_File\_Association.asp is described how to associate the documents with my program. I'm still looking for a method to load additional documents into the application via double-clicking the respective file. With MFC this was done using DDE, but DDE doesn't seem to be supported well in .net. What is the standard way to achieve this in .net? TIA, Matthias
-
Hi, I'm writing an application supporting MDI. In http://www.codeproject.com/useritems/System\_File\_Association.asp is described how to associate the documents with my program. I'm still looking for a method to load additional documents into the application via double-clicking the respective file. With MFC this was done using DDE, but DDE doesn't seem to be supported well in .net. What is the standard way to achieve this in .net? TIA, Matthias
-
Hi, I'm writing an application supporting MDI. In http://www.codeproject.com/useritems/System\_File\_Association.asp is described how to associate the documents with my program. I'm still looking for a method to load additional documents into the application via double-clicking the respective file. With MFC this was done using DDE, but DDE doesn't seem to be supported well in .net. What is the standard way to achieve this in .net? TIA, Matthias
See here[^] for an example. Note that you can always use the
WM_COPYDATA
message to pass an arbitrary block of data between processes, so the use of the registry is not necessary.Stability. What an interesting concept. -- Chris Maunder