Hello, I have recently finished a simple program that setsup several timers to help in monitoring several tasks; the task files are xml files with the description and other stuff; I can load them from the application's menu, or (once started) dragging the file inside the application area; for each task the application opens a mdi child.
The problem: I have registered a file estension for that task files, but a new instance of my application is opened for each "doubleclick" over the task file (so the mdi is totally useless). Is there a way to prevent multiple instances of the same application and at the same time redirect the launching information (in that case the information is the path to the task file that I want to load) to the unique application?
I know how to check for another instance of the application (to alert the user or quit) (better say, I know that I have a code snippet to check the single instance), but I'm not able to find a solution to redirect the information to the unique instance.
I have the idea that maybe with pipes it can be solved, but I have never used them and I still haven't started to learn more about that. Is that the way to do it?
Also I have thought: if I can communicate directly between two instances, isn't that a security hole??
Thank's in advance