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 type associations

file type associations

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
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.
  • G Offline
    G Offline
    gx44
    wrote on last edited by
    #1

    if i make a program that should handle a certain file type (for example, i want to make another notepad that should handle files of extension .txt), what do i have to do to associate that file type (in my case .txt) with my own program (in my case, let's say GNotepad.exe) so that by double-clicking a .txt file in the explorer it should open my notepad instead of the classic one ? oh, and i would reaaaaaaly apreciate if you have an example of source code. thanX a lot :) ...

    J 1 Reply Last reply
    0
    • G gx44

      if i make a program that should handle a certain file type (for example, i want to make another notepad that should handle files of extension .txt), what do i have to do to associate that file type (in my case .txt) with my own program (in my case, let's say GNotepad.exe) so that by double-clicking a .txt file in the explorer it should open my notepad instead of the classic one ? oh, and i would reaaaaaaly apreciate if you have an example of source code. thanX a lot :) ...

      J Offline
      J Offline
      Joel Holdsworth
      wrote on last edited by
      #2

      I think this article explains the solution pretty well (if you're using MFC): http://www.codeproject.com/shell/cgfiletype.asp[^] Joel Holdsworth Wanna give me a job this summer? Check out my online CV and project history[^] - now available in MSWord format![^]

      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