My Application is an image viewing/manipulating program with a multiple document interface. (multiple images can be open at the same time.) I have the file associations working so that when I double click on one of my registered image types, my application launches with the file name of the image as an argument, so after launching it displays the image. However, if I double-click an image file while my application is already running, it will launch another copy of my application and open the image file there.
How can I set up the file association so that if my application is already open and a user double clicks an image file, the image file will be passed to a method in the already open application?
Thanks