what is the difference between SDI and MDI




Answers were Sorted based on User's Feedback



what is the difference between SDI and MDI..

Answer / neil

SDI can load only 1 document at a time,however it can have
multiple views in the same window using splitter windows
property.
example is a notepad in windows.

An MDI application has multiple child windows, each of
which corresponds to an individual document. Microsoft Word
is a good example of an MDI application.
Here also we can have splitter windows property, with same
view in diff. windows or diff. views in diff windows.

Is This Answer Correct ?    263 Yes 25 No

what is the difference between SDI and MDI..

Answer / dheeraj mehrotra

MDI = "Multiple Document Interface"
SDI = "Single Document Interface"

MDI is when your application consist of an MDI parent-form
that contains all the other window/forms that the app
consists of.

SDI is stand-alone, ordinary windows/forms that exists
independently
of each other.

computerscienceexpertise.com

Is This Answer Correct ?    136 Yes 16 No

what is the difference between SDI and MDI..

Answer / sachin moule

SDI - is single document interfase contain only one window
at a time but for MDI is multiple doc. int. it contain
multiple document at a time this all document will appear
as child window for MDI window .

Is This Answer Correct ?    69 Yes 14 No




what is the difference between SDI and MDI..

Answer / jai

mdi is a container control

sdi
is not container control

Is This Answer Correct ?    73 Yes 26 No

what is the difference between SDI and MDI..

Answer / zerozero

SDI:
 We can open only one document at a time, Ex: Notepad
 SDI App hold only 4 classes (
CView,CDoc,CFrameWnd,CWinApp)
 SDI App has CSingleDocTemplate and holds 3 classes

MDI
 We can open multiple docs simultaneously, example:
MS Word
&#61692; MDI holds 5 classes (CChildWnd<---
CMDIChildWnd,CDoc,Cview,CFrameWnd).
&#61692; MDI has CMultiDocTemplate and holds below classes.

CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_MDIAPPTYPE,
RUNTIME_CLASS(CMDIAPPDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI
child frame
RUNTIME_CLASS(CMDIAPPView));
AddDocTemplate(pDocTemplate);

Is This Answer Correct ?    53 Yes 12 No

what is the difference between SDI and MDI..

Answer / tabrez ajaz

MDI means "Multiple Document Interface" &
SDI means "Single Docoment Interface"
Differences between both interfaces:-
1:- MDI supports multiple views means multiple windows at
the same time on the display screen. But
SDI supports one application window at a time.
2:-MDI supports many interfaces means we can handle many
applications at a time acoording to users requirements.But
SDI supports one interface means you can handle only one
application at a time

Is This Answer Correct ?    44 Yes 9 No

what is the difference between SDI and MDI..

Answer / ramesh alavala

SDI:
We can open only one document at a time, Ex: Notepad
SDI App hold only 4 classes (C View,C Doc,Underframe,CWinApp)
SDI is not container control.
SDI is stand-alone, ordinary windows/forms that exists
independently
of each other.
MDI:
We can open multiple docs simultaneously.
example:MS Word.
MDI holds 5 classes (CChildWnd<---
CMDIChildWnd,C Doc,C view,CFrameWnd).
mdi is a container control.
MDI is when your application consist of an MDI parent-form
that contains all the other window/forms.

Is This Answer Correct ?    29 Yes 5 No

what is the difference between SDI and MDI..

Answer / ctharam

SDI:-
1)(S)ingle (D)ocument (I)nterface
2)it can load only one document at a time
3)it has 4 kind of classes. they are CWinApp,CView,CDocument and CFramewnd
4)multiple view at same window
5)Notepad is an example

Where as in
MDI:-
1)(M)ultiple (D)ocument (I)nterface
2)it can load more than one document (0r) multiple documents at a time
3)it has 5 kind of classes.they are CChildWnd,CMDIChildWnd,CView,CDocument and CframeWnd
4)multiple views in different windows
5)MS -Word Document is an Example

Is This Answer Correct ?    22 Yes 1 No

what is the difference between SDI and MDI..

Answer / sarika patel

MDI: window also provides an organizing schema called MDI
for more complicated application such as a text editor.

SDI: most simple window application use a SDI fram the
clock, PIF editor and notepad are eg. of SDI .

Is This Answer Correct ?    24 Yes 6 No

what is the difference between SDI and MDI..

Answer / shakuntala

The full answer is available in MSDN, but in a nutshell SDI or a single document interface is a window that can only handle one document at a time per window. An example of an SDI is Notepad (you can only edit one text file per Notepad window. If you want to edit two files, you need two Notepad windows).

An MDI or multiple document interface is a window that can handle more than one document at a time (usually by creating subwindows). An example of an MDI is Visual Studio. You can have multiple Cpp files open in the same Visual Studio window (you navigate through each CPP file by using the tabs, or the Window menu). Most (but not all) MDIs implement a tabbed style interface similar to Visual Studio to navigate between documents.

Is This Answer Correct ?    15 Yes 5 No

Post New Answer



More MFC Interview Questions

In SDI how many view's are attached to document object and in MDI how many view's are attached to Document object?

2 Answers   Wipro,


what if we provide two message handler for same message ?

1 Answers  


What are the advantages of using Doc/View or SDI over DialogBox

2 Answers  


Which CPrintInfo member variable must be set for multiple page printouts?

1 Answers  


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A. Explain how a pointer to function can be declared in C++? B. List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header ("Include") Files.

3 Answers   HCL, Infosys, ABC,






Explain in sort What is CTargetObject?

2 Answers  


Can you explaing the relashionship between document,frame and view ?

2 Answers  


what is message Testing ?

1 Answers   L&T,


How to setup a timer?

3 Answers   IBM,


1)dynamic creation of a Button ?

2 Answers   TCS,


Hi All, I have created one MFC Dialog Based application.now if i am running the application its working fine,instead of closing he application i minimized the application,if i run the application again,i am getting the Dialog. I want to prevent the calling of application multiple times. please give me the code and let me know in which method i need to make changes. Praveer

7 Answers   HP,


What types of threads are supported by MFC framework?

2 Answers  






Categories