Exercises

Exercise 23.1: Checking the CRect and CString documentation

Look up the documentation on CRect, CSize, CString, and CPoint. We’re going to be using these classes from time to time. Be sure and get an idea of the different methods and constructors that these classes have.

Exercise 23.2: Checking the WinMain documentation

Look up WinMain in the Visual Studio Help and see what it says about WinMain in MFC.

Exercise 23.3: Using the debugger to look under the hood of MFC

How does one find out how the CPopView::CView constructor gets called from inside CPopApp::InitInstance ? As a way of getting to know the debugger, let’s work through some steps to figure it out.

First put a breakpoint inside the (empty brackets) code for the constructor ...

Get Software Engineering and Computer Games now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.