Re: moving from SDI to MDI

Tech-Archive recommends: Fix windows errors by optimizing your registry



If I'm running an app, how do I know if it's MDI or SDI ?

I use MDI if I think the app needs it, otherwise SDI. I never write dialog apps, always SDI with FormView.

Joseph M. Newcomer wrote:
Why not just start with MDI? As I said, I've had a few clients who absolutely insisted on
SDI. They refused to listen to any arguments in favor of MDI. So I would build an SDI
app, they'd show it to their customers, and the customers would come back with "but why
isn't in MDI?" Even when I teach the MFC course, I tell my students that SDI is for toy
projects in courses, not for real work.
joe

On Sat, 19 Aug 2006 18:42:33 -0700, "Ed Weir \(ComCast\)" <Anon@xxxxxxxx> wrote:


"Ajay Kalra" <ajaykalra@xxxxxxxxx> wrote in message news:eVMrPc$wGHA.4160@xxxxxxxxxxxxxxxxxxxxxxx
| It can be done without too much of a problem. But why would you want to do
| it? If you have some doubts, go with MDI. Just have one document. I have
| always considered SDI to be essentially useless or simply for prototyping an
| app.

EXACTLY. I use SDI for initial coding, demos and proof-O-concept; then upgrade to MDI for the long haul. SDI's make great sandboxes for app design because of the relative simplicity during initial development, but real apps are MDI's in my opinion.

Cheers...!
- Ed.

--------------------------------------------------------------------------------------------
| --
| Ajay Kalra [MVP - VC++]
| ajaykalra@xxxxxxxxx
|
|
| "--== Alain ==--" <nospam@xxxxxxxxxxx> wrote in message
| news:u1pPex1wGHA.4180@xxxxxxxxxxxxxxxxxxxxxxx
| > Hi,
| >
| > I still do no know if my application should be a SDI or MDI application.
| > I would like to know if it's possible to transform a SDI application to
| > MDI application with few changes ?
| > will it be easy ? what should i take care about ?
| >
| > Or if it's not possible ?
| >
| > thanks a lot,
| >
| > Alain
|
|

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Opening a file for processing in MFC
    ... and it works the same way in MFC as it does without using MFC. ... You need to say a bit more about the context of the app, but it works just fine, and I do ... OpenDocument handler for SDI or MDI. ...
    (microsoft.public.vc.mfc)
  • Re: 4 newbie MDI questions
    ... I believe I need to use SDI as there are going to be two different ... MDI is the same view of different data. ... You could make it an MDI app. ... > p.s I was going to use CEditView or maybe a combination of CEditView and ...
    (microsoft.public.vc.mfc)
  • Re: moving from SDI to MDI
    ... They refused to listen to any arguments in favor of MDI. ... build an SDI ... | projects in courses, not for real work. ... SDI dev has a faster rise time and less expense; if an app flies, ...
    (microsoft.public.vc.mfc)
  • Re: How to send images to other Windows
    ... In SDI, there are ways of swapping views (in fact, there ... If you open an image in CDoc1 and display it in view 1, why do you want to somehow display ... MDI apps. ... I have avoided writing SDI apps for at least eight years. ...
    (microsoft.public.vc.mfc)
  • Re: moving from SDI to MDI
    ... They refused to listen to any arguments in favor of MDI. ... So I would build an SDI ... app, they'd show it to their customers, and the customers would come back with "but why ... projects in courses, not for real work. ...
    (microsoft.public.vc.mfc)