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

    How to open a file use default AP like double click in Windows Explorer ?

    Good afternoon , everyone :
    Do you know how to open a selected file with default AP when you double click on it ?
    Just like Windows Explorer does.Double clicking on .Jpeg file maybe opened with iphoto express or photoshop dependents on system setting ?

    Thank you advanced.

    Best Regards.
    Gloria


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

    Re: How to open a file use default AP like double click in Windows Explorer ?

    use the ShellExecute(Ex) API and specify the "open" verb.


  3. #3
    Join Date
    May 1999
    Posts
    6

    Re: How to open a file use default AP like double click in Windows Explorer ?

    Thank you very much.
    It works fine.

    Gloria


  4. #4
    Join Date
    May 1999
    Posts
    6

    Re: How to open a file use default AP like double click in Windows Explorer ?

    Hello,
    May I ask you one more question ?
    Is there any prework when I use
    ShellExecute with verb "properties".
    When I use it,the error message is
    ERR_NO_ASSOC.

    Thank you in advanced.

    Best Regards.
    Gloria


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