patrick
Posts: 4
Joined: Thu Mar 10, 2005 8:59 pm

File association question

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
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Change your app so that if it finds a copy of itself already running, it just passes the file to be open by the running copy and then exits.

Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”