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. SDI File Open

SDI File Open

Scheduled Pinned Locked Moved C / C++ / MFC
architecturetutorial
6 Posts 3 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.
  • S Offline
    S Offline
    ShilpiP
    wrote on last edited by
    #1

    I am using SDI application with doc/view architecture support.I dont have any idea how to implement open file function.i read lots of article but not find any solution. Thanks in advance. :)

    Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

    L 1 Reply Last reply
    0
    • S ShilpiP

      I am using SDI application with doc/view architecture support.I dont have any idea how to implement open file function.i read lots of article but not find any solution. Thanks in advance. :)

      Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

      L Offline
      L Offline
      Le rner
      wrote on last edited by
      #2

      Which type of file r u want to open? Try CFile class to open and perform other operation on that file.

      IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

      S 1 Reply Last reply
      0
      • L Le rner

        Which type of file r u want to open? Try CFile class to open and perform other operation on that file.

        IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

        S Offline
        S Offline
        ShilpiP
        wrote on last edited by
        #3

        Hi Shanky, Thanks For reply. I want to open the unicode txt file in CEditView.I know internally onOpenDocument is called but dont know how to implement it. so that the code is open in View Window just like notepad. If you have any code than pls share with me or if any idea how to implement it. Again thanks :)

        Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

        D 1 Reply Last reply
        0
        • S ShilpiP

          Hi Shanky, Thanks For reply. I want to open the unicode txt file in CEditView.I know internally onOpenDocument is called but dont know how to implement it. so that the code is open in View Window just like notepad. If you have any code than pls share with me or if any idea how to implement it. Again thanks :)

          Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

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

          Shilpi Boosar wrote:

          ...but dont know how to implement it. so that the code is open in View Window just like notepad.

          Your document class will contain some sort of buffer to hold the contents of the file. Your view class will render that buffer on the screen/printer.

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

          "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

          S 1 Reply Last reply
          0
          • D David Crow

            Shilpi Boosar wrote:

            ...but dont know how to implement it. so that the code is open in View Window just like notepad.

            Your document class will contain some sort of buffer to hold the contents of the file. Your view class will render that buffer on the screen/printer.

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

            "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

            S Offline
            S Offline
            ShilpiP
            wrote on last edited by
            #5

            Hi David thanks for reply. I am able to open the file in view window but when i close the application and open the txt file than that file is blank. i dont know why. If you have any article that explain the doc view architecture and splitter window than please send it to me. :) Thanks

            Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

            D 1 Reply Last reply
            0
            • S ShilpiP

              Hi David thanks for reply. I am able to open the file in view window but when i close the application and open the txt file than that file is blank. i dont know why. If you have any article that explain the doc view architecture and splitter window than please send it to me. :) Thanks

              Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

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

              Is the document class overwriting the file?

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

              "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

              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