CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 1998
    Posts
    23

    reading Registry



    How do i read the default path to the application that has been set as default for a file with a extention.


    Example:-


    If i pick up a file with say a .bmp extention how do i check the registry for the correct name and path to the associated application.


    Thanks



  2. #2
    Join Date
    Jan 1999
    Posts
    6

    Reading registry



    Hi,


    Idon't know but if you want to run the associated program you can use the ShellExecute function :


    Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long


    I hope it can help

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