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. file extensions

file extensions

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 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.
  • M Offline
    M Offline
    Marissa182
    wrote on last edited by
    #1

    Hi Im wondering how i can associate certain file extension to my program and have it run the program when the person opens a file with that extension any help is appreciated thanks

    M 2 Replies Last reply
    0
    • M Marissa182

      Hi Im wondering how i can associate certain file extension to my program and have it run the program when the person opens a file with that extension any help is appreciated thanks

      M Offline
      M Offline
      Mahesh Varma
      wrote on last edited by
      #2

      Hi To associate a file extension to your program, you should create a registry entry under HKEY_CURRENT_USER -->Software -->Microsoft -->Windows -->CurrentVersion -->Explorer -->FileExts. 1. Under FileExts create a key with same name as your file extension. (Eg: For bitmap files you can find a key named .bmp under FileExts.) 2. Also create a subkey named "OpenWithlist". 3. Add a string value named "a". 4. Set the value data of this key as your application path. (Eg: for paint you can find the entry mspaint.exe as value data) Mahesh

      1 Reply Last reply
      0
      • M Marissa182

        Hi Im wondering how i can associate certain file extension to my program and have it run the program when the person opens a file with that extension any help is appreciated thanks

        M Offline
        M Offline
        Mahesh Varma
        wrote on last edited by
        #3

        Hi Sorry i made a mistake. 1. Under the FileExt key, add a string value named "Application". 2. Set the value data of this string value as your application path. (Eg. For .bmp you can see this value as mspaint.exe) Mahesh

        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