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 extension

File extension

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

    Hi, i wrote a MDI application..i have given an extension .sam..i have serialized the data..saved the document on the disk..When i double click on the file..by default..i want it to be opened by my application..how to do it..? thanks in before James

    B D 2 Replies Last reply
    0
    • R RockyJames

      Hi, i wrote a MDI application..i have given an extension .sam..i have serialized the data..saved the document on the disk..When i double click on the file..by default..i want it to be opened by my application..how to do it..? thanks in before James

      B Offline
      B Offline
      benjymous
      wrote on last edited by
      #2

      You need to create a file association Clickety[^]

      -- Help me! I'm turning into a grapefruit! Buzzwords!

      R 1 Reply Last reply
      0
      • B benjymous

        You need to create a file association Clickety[^]

        -- Help me! I'm turning into a grapefruit! Buzzwords!

        R Offline
        R Offline
        RockyJames
        wrote on last edited by
        #3

        please can you be more clear ,i did not understand it..

        T 1 Reply Last reply
        0
        • R RockyJames

          please can you be more clear ,i did not understand it..

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          click on the link and read the article man ! :zzz: it seems to be not the 1st time you have problems to follow given links :~


          You don't know where to start ? ask a good friend

          [VisualCalc 3.0][Flags Beginner's Guide]

          1 Reply Last reply
          0
          • R RockyJames

            Hi, i wrote a MDI application..i have given an extension .sam..i have serialized the data..saved the document on the disk..When i double click on the file..by default..i want it to be opened by my application..how to do it..? thanks in before James

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

            RockyJames wrote:

            When i double click on the file..by default..i want it to be opened by my application..how to do it..?

            If the application was created by AppWizard, this should happen automatically. There should be a .reg file in your project. You should also have calls to EnableShellOpen() and RegisterShellFileTypes() in the app's InitInstance() method.


            "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

            "Judge not by the eye but by the heart." - Native American Proverb

            R 1 Reply Last reply
            0
            • D David Crow

              RockyJames wrote:

              When i double click on the file..by default..i want it to be opened by my application..how to do it..?

              If the application was created by AppWizard, this should happen automatically. There should be a .reg file in your project. You should also have calls to EnableShellOpen() and RegisterShellFileTypes() in the app's InitInstance() method.


              "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

              "Judge not by the eye but by the heart." - Native American Proverb

              R Offline
              R Offline
              RockyJames
              wrote on last edited by
              #6

              thank q..very much

              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