Click to See Complete Forum and Search --> : File/Application Association


Rishi
April 26th, 1999, 04:48 PM
In our appliaction, I want to implement a Explorer like feature. When you double-click on any file then to go to registry and find the associated app, To launch the app with the selected file.
Example - If you double click on Microsoft.doc file, then it should open Microsoft.doc in Word.

Any hints?

Franky Braem
April 27th, 1999, 08:07 AM
In the registry all the extensions and their associated app are stored in HKEY_CLASSES_ROOT. You can use this to launch the application.

Lothar Haensler
April 27th, 1999, 08:10 AM
use ShellExecute and specify the "open" verb. Do not specify an application, but only the filename (e.g. mydoc.doc or mypicture.gif) and let the API find the correct application to launch.

Rishi
April 27th, 1999, 09:49 AM
Thanks Franky

Rishi