Link to home
Start Free TrialLog in
Avatar of kmurphy99
kmurphy99

asked on

Document/View -- where to keep the data in FTP app

Another basic question about MFC.  In my application, I allow users to connect to an FTP site, display a list of files available, then have them either transfer or edit these files.

To establish the FTP connection, I just have a simple dialog where users can enter such things as username, password, sitename, port, etc.  My questoin is:  To keep with the doc/view model, where should I handle displaying the dialog?  In the document?  Where should I store the information the user enters?  Again, should this go in the document?  

I have 2 views in a split window:  1 for files, 1 for editing text.  I have also created a class for storing the FTP info described above
Avatar of nv3prasad
nv3prasad

Since you want to stick to the Doc-View Arch. , the best place for you to display the Dialog will be View Class and storing of Information into a file in the Document class.

Prasad
ASKER CERTIFIED SOLUTION
Avatar of mikeblas
mikeblas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Microsoft way of designing the system using Document View is not the best way to go unless you are doing a realy simple app, look an the pattern Model View Controller so you can understand better how data can be kept sparate from the view representation and control scheem.