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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
Prasad