How to view a file with default viewers?
-
How can I view a file with an external viewer from within my application? I know I could use the "system" command, but then I have to give the path to the external viewer, but what when I don't know the path? I mean if my application needs to view a html page I could give a path to netscape or IE, but what if there is not one of them at the system because the user only installed opera? Is there a quick and easy way to access the windows default viewer for the different fileformats? You know if you doubleclick on a file windows starts an application for viewing or editing that fileformat. Is there a command to do that easiely in a VC++ project?
-
How can I view a file with an external viewer from within my application? I know I could use the "system" command, but then I have to give the path to the external viewer, but what when I don't know the path? I mean if my application needs to view a html page I could give a path to netscape or IE, but what if there is not one of them at the system because the user only installed opera? Is there a quick and easy way to access the windows default viewer for the different fileformats? You know if you doubleclick on a file windows starts an application for viewing or editing that fileformat. Is there a command to do that easiely in a VC++ project?
-