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. I want to open rtf files with my own app

I want to open rtf files with my own app

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 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.
  • F Offline
    F Offline
    Filomela
    wrote on last edited by
    #1

    I want to open rtf files with my own app.How can I do this?Thanks.

    D 1 Reply Last reply
    0
    • F Filomela

      I want to open rtf files with my own app.How can I do this?Thanks.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      How about using ShellExecute()?


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      F 1 Reply Last reply
      0
      • D David Crow

        How about using ShellExecute()?


        "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

        F Offline
        F Offline
        Filomela
        wrote on last edited by
        #3

        As far as I know rtf files are opened by default by Word and I want to open by default with my app.

        D 1 Reply Last reply
        0
        • F Filomela

          As far as I know rtf files are opened by default by Word and I want to open by default with my app.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Then you simply need to change the default file association.


          "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

          F 1 Reply Last reply
          0
          • D David Crow

            Then you simply need to change the default file association.


            "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

            F Offline
            F Offline
            Filomela
            wrote on last edited by
            #5

            How?

            D 1 Reply Last reply
            0
            • F Filomela

              How?

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              If you created the application using AppWizard, it's already been done. If not, check out CWinApp::RegisterShellFileTypes().


              "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

              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