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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Custome File Extensions with C++

Custome File Extensions with C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
6 Posts 4 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.
  • D Offline
    D Offline
    Diagathon
    wrote on last edited by
    #1

    Good day all :] Hopefully this is in the right section T__T :) A particular topic has really been getting to me lately, programming files with custom extensions. For example, lets say I have a file with a lot of important data pertaining to a program. I obviously dont want this accessible to the world, so I want to create my own file type, such as data.rid (really important data for the acronym :p) How would I go about doing something like that? I know it's simple enough to just rename a file, but how would I actually make it work with a program? Cheers! -Dia

    C D 2 Replies Last reply
    0
    • D Diagathon

      Good day all :] Hopefully this is in the right section T__T :) A particular topic has really been getting to me lately, programming files with custom extensions. For example, lets say I have a file with a lot of important data pertaining to a program. I obviously dont want this accessible to the world, so I want to create my own file type, such as data.rid (really important data for the acronym :p) How would I go about doing something like that? I know it's simple enough to just rename a file, but how would I actually make it work with a program? Cheers! -Dia

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      That's not complicated at all: when you create the file, you simply gives the extension you want. The extension doesn't mean a lot of things. It's only used by window to associate certain files with certain programs. But a file is still of file, no matter what the extension is.

      Cédric Moonen Software developer
      Charting control [v1.4]

      1 Reply Last reply
      0
      • D Diagathon

        Good day all :] Hopefully this is in the right section T__T :) A particular topic has really been getting to me lately, programming files with custom extensions. For example, lets say I have a file with a lot of important data pertaining to a program. I obviously dont want this accessible to the world, so I want to create my own file type, such as data.rid (really important data for the acronym :p) How would I go about doing something like that? I know it's simple enough to just rename a file, but how would I actually make it work with a program? Cheers! -Dia

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

        Diagathon wrote:

        For example, lets say I have a file with a lot of important data pertaining to a program. I obviously dont want this accessible to the world...

        So do you want to encrypt it?

        "Love people and use things, not love things and use people." - Unknown

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        D 1 Reply Last reply
        0
        • D David Crow

          Diagathon wrote:

          For example, lets say I have a file with a lot of important data pertaining to a program. I obviously dont want this accessible to the world...

          So do you want to encrypt it?

          "Love people and use things, not love things and use people." - Unknown

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          D Offline
          D Offline
          Diagathon
          wrote on last edited by
          #4

          Thank you Cedrick! I now have a better understanding of that aspect :] David: I believe that is what I am referring to :O How would I go about doing that? If there is documentation somewhere that I could be pointed to, please share so I dont bother you with typing out a long example :] Thank you for the fast replies as well! :]

          N 1 Reply Last reply
          0
          • D Diagathon

            Thank you Cedrick! I now have a better understanding of that aspect :] David: I believe that is what I am referring to :O How would I go about doing that? If there is documentation somewhere that I could be pointed to, please share so I dont bother you with typing out a long example :] Thank you for the fast replies as well! :]

            N Offline
            N Offline
            Nelek
            wrote on last edited by
            #5

            For instance... you can start in the security section[^] here in CP.

            Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson Rating helpfull answers is nice, but saying thanks can be even nicer.

            D 1 Reply Last reply
            0
            • N Nelek

              For instance... you can start in the security section[^] here in CP.

              Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson Rating helpfull answers is nice, but saying thanks can be even nicer.

              D Offline
              D Offline
              Diagathon
              wrote on last edited by
              #6

              Aha, thank you very muc :D

              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