Click here to Skip to main content
15,917,862 members
Home / Discussions / C#
   

C#

 
GeneralSecurityexception connecting to glftpd 2.0 Pin
Azraelgod21-Mar-05 1:53
Azraelgod21-Mar-05 1:53 
GeneralUndo for VS add-Ins Pin
Boniolopez21-Mar-05 1:50
Boniolopez21-Mar-05 1:50 
Generalcopying reference variables Pin
suzyb21-Mar-05 1:50
suzyb21-Mar-05 1:50 
GeneralRe: copying reference variables Pin
leppie21-Mar-05 2:14
leppie21-Mar-05 2:14 
GeneralRe: copying reference variables Pin
J4amieC21-Mar-05 2:34
J4amieC21-Mar-05 2:34 
GeneralRe: copying reference variables Pin
suzyb21-Mar-05 4:08
suzyb21-Mar-05 4:08 
GeneralImage Gallery Control! Pin
Micu Radu21-Mar-05 1:49
Micu Radu21-Mar-05 1:49 
GeneralDocument/View separation in MFC Pin
Rei Miyasaka20-Mar-05 23:58
Rei Miyasaka20-Mar-05 23:58 
If you've ever used MFC before, you might remember the concept of separating document and view. Setting aside the debate about whether MFC is good or not, I'm developing an app right now that has a clear definition of a document that can be saved/loaded/printed and possibly edited in different views, and I think I could use some of the design that were quite rigidly enforced in MFC.

Unfortunately, I've lent my MFC book to a friend (probably about 5 years ago), and I can't remember some of the document/view separation ideas.

If anyone happens to remember the answers, here are my main questions:
-Should the main view create and manage the document object, or should it be created outside?
-Should the document object be able to access the view object (WinForms control), and should I use it from there? Should I worry about portability of the document object, or should I just worry about that when I serialize it and leave the view object out?
-Since objects within the document are in charge of drawing themselves, should the document object draw the whole view, or should that be up to the view object? If the latter, should I pass the Device Context (System.Drawing.Graphics in .NET) to each draw routine?

Thanks in advance.

By the way, don't you think it'd be cool if VS.NET had templates for SDI and MDI C# applications? Maybe we should post that on the Whidbey suggestions page.
GeneralRe: Document/View separation in MFC Pin
Colin Angus Mackay21-Mar-05 0:28
Colin Angus Mackay21-Mar-05 0:28 
GeneralRe: Document/View separation in MFC Pin
Rei Miyasaka21-Mar-05 0:40
Rei Miyasaka21-Mar-05 0:40 
QuestionHow to handle powerpoint? Pin
abandito20-Mar-05 23:31
abandito20-Mar-05 23:31 
GeneralInterprocess communication Pin
ppp00120-Mar-05 23:03
ppp00120-Mar-05 23:03 
Generalmapi message .. urgent help needed Pin
sheri198120-Mar-05 22:50
sheri198120-Mar-05 22:50 
GeneralCan't detect previous version of Applcation Pin
azusakt20-Mar-05 22:05
azusakt20-Mar-05 22:05 
GeneralUnable to remove assembly from Cache Pin
Adnan Siddiqi20-Mar-05 21:17
Adnan Siddiqi20-Mar-05 21:17 
GeneralRe: Unable to remove assembly from Cache Pin
Adnan Siddiqi20-Mar-05 21:21
Adnan Siddiqi20-Mar-05 21:21 
GeneralWhy o why? Pin
leppie20-Mar-05 21:46
leppie20-Mar-05 21:46 
Generalabout the comminly used classes in .net Pin
satishrg20-Mar-05 18:46
satishrg20-Mar-05 18:46 
GeneralRe: about the comminly used classes in .net Pin
Colin Angus Mackay20-Mar-05 20:47
Colin Angus Mackay20-Mar-05 20:47 
GeneralRe: about the comminly used classes in .net Pin
leppie20-Mar-05 21:36
leppie20-Mar-05 21:36 
GeneralRe: about the comminly used classes in .net Pin
Rei Miyasaka21-Mar-05 0:02
Rei Miyasaka21-Mar-05 0:02 
Generalthanks to all Pin
satishrg21-Mar-05 5:43
satishrg21-Mar-05 5:43 
GeneralKeyboard language Pin
ABBASI_RA20-Mar-05 16:03
ABBASI_RA20-Mar-05 16:03 
GeneralRe: Keyboard language Pin
Christian Graus20-Mar-05 16:27
protectorChristian Graus20-Mar-05 16:27 
GeneralRe: Keyboard language Pin
Dave Kreskowiak20-Mar-05 17:27
mveDave Kreskowiak20-Mar-05 17:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.