Original Post
Let me state this example first: Usually when want to open a data file (e.g. a word file or a bmp file) on your desktop you double-click (or just click for some ppl) on it. The program -that reads the data file- starts and the file is auto-loaded. How is this done?? I made a small mesh viewer that reads a few known types of 3D files. I usually load the files by adding their names and locations in a 'load.txt' file (very simple viewer -_-). Is there a way that I can just duoble-click on a file and the viewer would just start by it self loading the file at the same time?? I'm guessing that you would use the 'Open with...' option to indecate what program to run the files. But how can I setup/program the viewer so it can get the file name and loaded it?? Is this even possiable with a cousule application or is it only done on a window application?? Thanks.