Cetin,
I'll nutshell for you what I'm trying to do in my application:
I want to load a File Open Dialog; have the user select a drawing (raster type) file; Click OK; Load the Drawing Viewer program with the selected file loaded in Drawing Viewer application.
I know that GETFILE() will return something like E:\DATA\DWG\2299\2299A.MIL.
I can then parse this string for .MIL extension, pass this extension to your method to find the Drawing Viewer program; then exec this application with ShellExecute() with this file loaded.
Fz
Don