Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to create an "Open With" list?

How to create an "Open With" list?

Scheduled Pinned Locked Moved C / C++ / MFC
c++windows-adminlinuxtutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ralfoide
    wrote on last edited by
    #1

    Hi! I need to be able to launch a viewer for a given file from my application (Win32/MFC/C++). Ideally I'd like to present the user with choices similar to the "Open With..." feature of the explorer shell. I tried SHGetFileInfo but it keeps returning 0 for the flag SHGFI_TYPENAME (failure). So I assume there's two part in my quest: 1- Find the type (mime type?) a given extension (I don't necessarily have the file created yet -- i.e. I'd like the user to be able to choose before creating the file) 2- Find a list of suitable applications (path, "user friendly" name) that can open that mime type. I seems like I could just go and fish the info from the registry, but would that work on any windows version? Regards R/

    A 1 Reply Last reply
    0
    • R ralfoide

      Hi! I need to be able to launch a viewer for a given file from my application (Win32/MFC/C++). Ideally I'd like to present the user with choices similar to the "Open With..." feature of the explorer shell. I tried SHGetFileInfo but it keeps returning 0 for the flag SHGFI_TYPENAME (failure). So I assume there's two part in my quest: 1- Find the type (mime type?) a given extension (I don't necessarily have the file created yet -- i.e. I'd like the user to be able to choose before creating the file) 2- Find a list of suitable applications (path, "user friendly" name) that can open that mime type. I seems like I could just go and fish the info from the registry, but would that work on any windows version? Regards R/

      A Offline
      A Offline
      Amit Dey
      wrote on last edited by
      #2

      ralfoide wrote: I could just go and fish the info from the registry seems like the only way.:-O

      Hush,hush... thought I heard you call my name now. Kula Shaker. Amit Dey Latest articles at CP -
      Writing Word addins Office addin

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups