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. No of Documents and View in SDI and MDI

No of Documents and View in SDI and MDI

Scheduled Pinned Locked Moved C / C++ / MFC
question
10 Posts 5 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.
  • K Offline
    K Offline
    krishna_CP
    wrote on last edited by
    #1

    HI, Please clarify my doubt. How many maximum Documents and View will be available in SDI ? How many maximum Documents and View will be available in MDI ? Thanks, Krishna

    _ A N 3 Replies Last reply
    0
    • K krishna_CP

      HI, Please clarify my doubt. How many maximum Documents and View will be available in SDI ? How many maximum Documents and View will be available in MDI ? Thanks, Krishna

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      The number of documents and views are limited only by memory. The documents and its views in an MFC application are stored internally in linked lists. So you shouldn't worry about this. If you have reached the limit and are unable to add more, there is something seriously wrong with the program and needs a re-design.

      «_Superman_»
      I love work. It gives me something to do between weekends.

      Microsoft MVP (Visual C++)

      Polymorphism in C

      C 1 Reply Last reply
      0
      • K krishna_CP

        HI, Please clarify my doubt. How many maximum Documents and View will be available in SDI ? How many maximum Documents and View will be available in MDI ? Thanks, Krishna

        A Offline
        A Offline
        Aescleal
        wrote on last edited by
        #3

        Unless you want to do some real fancy footwork you can only have one document in an SDI application. This is due to the limitation of only having one frame window per instance of the application with MFC out of the box. There are ways you could get 'round this but they're probably not worth doing. With MDI apps you can have as many frame windows as you want so as many documents as you can fit in memory. You can have as many views per document as you want with the limitations of what can fit on your screen. Cheers, Ash

        1 Reply Last reply
        0
        • _ _Superman_

          The number of documents and views are limited only by memory. The documents and its views in an MFC application are stored internally in linked lists. So you shouldn't worry about this. If you have reached the limit and are unable to add more, there is something seriously wrong with the program and needs a re-design.

          «_Superman_»
          I love work. It gives me something to do between weekends.

          Microsoft MVP (Visual C++)

          Polymorphism in C

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

          That's true for MDI but for an SDI, you only have one document.

          Cédric Moonen Software developer
          Charting control [v3.0] OpenGL game tutorial in C++

          K 1 Reply Last reply
          0
          • K krishna_CP

            HI, Please clarify my doubt. How many maximum Documents and View will be available in SDI ? How many maximum Documents and View will be available in MDI ? Thanks, Krishna

            N Offline
            N Offline
            Niklas L
            wrote on last edited by
            #5

            SDI is short for Single Document Interface, MDI for Multiple Document Interface. So that's that. As for views, you can have as many as you like as long as they fit into memory. You can even have more than can be shown at a time on screen if you'd like, since you can dynamically change what views you want to be visible.

            home

            K 1 Reply Last reply
            0
            • C Cedric Moonen

              That's true for MDI but for an SDI, you only have one document.

              Cédric Moonen Software developer
              Charting control [v3.0] OpenGL game tutorial in C++

              K Offline
              K Offline
              krishna_CP
              wrote on last edited by
              #6

              Thanks Cédric, 1.In SDI only one Document will be there or one Document at a time we can load ? 2.How many views in SDI is one View or Many ? Thanks, Rayalu

              C 1 Reply Last reply
              0
              • N Niklas L

                SDI is short for Single Document Interface, MDI for Multiple Document Interface. So that's that. As for views, you can have as many as you like as long as they fit into memory. You can even have more than can be shown at a time on screen if you'd like, since you can dynamically change what views you want to be visible.

                home

                K Offline
                K Offline
                krishna_CP
                wrote on last edited by
                #7

                Means for SDI i have only one Document, But i can have any no of views ? Thanks, Krishna

                K 1 Reply Last reply
                0
                • K krishna_CP

                  Thanks Cédric, 1.In SDI only one Document will be there or one Document at a time we can load ? 2.How many views in SDI is one View or Many ? Thanks, Rayalu

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

                  1. I don't get your question. In a SDI application, you can only have one document loaded at a time in memory. Of course, you can load another document but then the old document is replaced by the new one. You always work with only one document. Does that answer your question ? 2. As many as you like (and what the memory allows).

                  Cédric Moonen Software developer
                  Charting control [v3.0] OpenGL game tutorial in C++

                  K 1 Reply Last reply
                  0
                  • C Cedric Moonen

                    1. I don't get your question. In a SDI application, you can only have one document loaded at a time in memory. Of course, you can load another document but then the old document is replaced by the new one. You always work with only one document. Does that answer your question ? 2. As many as you like (and what the memory allows).

                    Cédric Moonen Software developer
                    Charting control [v3.0] OpenGL game tutorial in C++

                    K Offline
                    K Offline
                    krishna_CP
                    wrote on last edited by
                    #9

                    Thank you Cedric, Same thing i asked.You answered my question. Thanks, Krishna

                    1 Reply Last reply
                    0
                    • K krishna_CP

                      Means for SDI i have only one Document, But i can have any no of views ? Thanks, Krishna

                      K Offline
                      K Offline
                      krishna_CP
                      wrote on last edited by
                      #10

                      Mr.Cedric Answered my Question Thanks once Again guys. Krishna

                      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