CTEC1638 Windows Programming — 2010W

Lab #3 — An Advanced Win32 Application

Lab Notes

Last updated: Sun Jan 10 13:51:50 EST 2010

Virtual Window

Screen Shots

Header Files

Additional Library

Add the winmm.lib library to the Linker Command Line, so that joystick functions are linked in to your executable. (see Screen Shot 4 for details)

Screen Shot 4[Lab3_properties_add_winmm_lib.gif; 66,024 bytes]

General Project Properties

The ensure that your project will build on all Windows platforms, change the following configuration properties:

Adding New Cases in WndProc

A convenient way to declare local variables in the case is to use a block (defined by curly braces).  Use comments as well. (see Screen Shot 7 for details)

Screen Shot 7[Lab3_source_WndProc_add_new_case.gif; 8,820 bytes]

Solution

How You Get Marks

[PDF] Lab 3 Marking Scheme [PDF; 14,601 bytes]

Lab 3 instructions   |   Back to CTEC1638   |   Technology Courses   |   Technology at Niagara College

Copyright © Niagara College, Canada, 2008-2010