CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    11

    File/Application Association

    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?




  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: File/Application Association

    In the registry all the extensions and their associated app are stored in HKEY_CLASSES_ROOT. You can use this to launch the application.


  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: File/Application Association

    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.


  4. #4
    Join Date
    Apr 1999
    Posts
    11

    Re: File/Application Association

    Thanks Franky

    Rishi


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured