No of Documents and View in SDI and MDI
-
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
-
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
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. -
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
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
-
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.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++ -
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
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.
-
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++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
-
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.
Means for SDI i have only one Document, But i can have any no of views ? Thanks, Krishna
-
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
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++ -
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++Thank you Cedric, Same thing i asked.You answered my question. Thanks, Krishna
-
Means for SDI i have only one Document, But i can have any no of views ? Thanks, Krishna
Mr.Cedric Answered my Question Thanks once Again guys. Krishna