dde, ole?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My vb.net app opens images, when I double click on an image (associated with my app) it opens because I read the command line parameters and open it. That all works fine

Now if I double click another image in explorer, it opens a second instance of my application. I don't want that, I want it to open in the application that is already open. I now how to check if a previous version is running, and set focus to currently running app. But I don't know how to open the image in currently running application

Back in the day this used to be done with DDE and/or OLE automation I believe. Any help here would be greatly appreciated
 
* "=?Utf-8?B?Um9iIFRlZWdhcmRlbg==?= said:
My vb.net app opens images, when I double click on an image (associated with my app) it opens because I read the command line parameters and open it. That all works fine.

Now if I double click another image in explorer, it opens a second instance of my application. I don't want that, I want it to open in the application that is already open. I now how to check if a previous version is running, and set focus to currently running app. But I don't know how to open the image in currently running application.

Back in the day this used to be done with DDE and/or OLE automation I believe. Any help here would be greatly appreciated.

You can pass the image to the other instance by using remoting, for
example, but I think that's oversized :-).
 
Back
Top