Build Scribble, Step 1

Compile your completed code and try out the program.

Suggested Reading

To build and try Scribble Step 1

  1. Open your Scribble project (if it’s not already open) by choosing Scribble.dsw from your project directory.

  2. If necessary, specify the Debug build:
    • From the Default Configuration drop-down list on the Build toolbar, select the Win32 Debug version of the project.
  3. From the Build menu, click Execute Scribble.exe.

  4. When prompted with the message that one or more files are out of date or do not exist, click Yes to build the file.

    When Scribble runs, an MDI application window appears with a menu bar containing File, Edit, View, Window, and Help menus and a toolbar and status bar. It has one document window open as shown in the following figure.

Note   Scribble may not build if there are errors, such as typos, in your code. Errors are reported in the Output window. By double-clicking an error in the Output window, you display the line where the error occurs in the text editor. Compare your code to the code in the sample directory or the tutorial text to discover where the error has occurred.

Scribble Step 1

  1. Move, resize, minimize, and maximize the document window.

  2. Draw “Hello, World!” (or anything) in the window. Then save the file as Hello.scb.

  3. Try the Print Preview and Print commands on the File menu.

    Note   Drawing on the printer device will show the strokes at a reduced size. This is because the current version of Scribble uses MM_TEXT mapping mode. Later in this tutorial, you’ll use MM_LOENGLISH mapping mode to improve the printer output.

  4. If you have an electronic mail system, try the Send command on the File menu.

  5. Close Hello.scb and reopen it with the Open button on the toolbar, or by choosing it from the MRU list.

  6. Create a new document with the New button on the toolbar and draw in the new document. (Save the new document if you like.)

  7. Exit Scribble.

This concludes Step 1 of Scribble. You’ve seen how to implement the document with serialization code, and the view with message handling functions.