Windows NT Systems Programming: Spring 1999

[ Home | Syllabus | Course Notes | Assignments | Search]


Assignment 7

NOMS (Document/View Implementation): You are to build a simple document/view solution to the NOMS project. The main objective of this assignment is to gain a better understanding of the document view architecture.

Due: March 24..

FUNCTIONAL REQUIREMENTS:

  1. User can create message objects containing a topic and body.
  2. User can save these objects (with extension .msg)
  3. User can open a saved object and edit and resave it.
  4. Each message object is stored in separate files.

IMPLEMENTATION REQUIREMENTS:

  1. Your solution must use the Doument/View Architecture.
  2. The Document is the Message (don't use the existing CMessage object).
  3. You do not have to implement CMsgFolder object. (directories can serve this purpose
  4. Use the built in menus for open, save, save as - this means you will use the standard file dialog box.
  5. Set the default extension to ".msg"
  6. Your solution should provide (for free if you use the Document/View wizard) 4 most recently used files, dragNdrop and open on selection from the file manager.

HINTS: The difficult part is providing the proper communication between the view object and the document object. The document object must be notified of updates to the view (See ON_EN_CHANGE for the CEdit object)  and the view object must get the latest state of the document object (use GetDocument). Opening an existing document or creating a new one must set the state of the document correctly.

Using the doc/view wizard - only the document and view objects and document string need to be changed.

I will devote some time at the beginning of March 17 and March 22 to questions on this project.

 


Copyright chris wild 1999.
For problems or questions regarding this web contact [Dr. Wild].
Last updated: March 10, 1999.