Chapter 3: Getting Started with the MFC Application Wizard
Chapter 2 introduced the MFC library's document-view architecture. This hands-on chapter will show you how to build a functioning MFC library application while insulating you from the complexities of the class hierarchy and object interrelationships. You'll work with only one document-view program element: the view class that is closely associated with a window. For the time being, you can ignore elements such as the application class, the frame window, and the document. Of course, your application won't be able to save its data to disk and won't support multiple views, but Part III of this book will give you plenty of opportunity to explore using those features.
Because resources are so important in Microsoft Windows–based applications, you'll use Resource View in this chapter to visually explore the resources of your new program. The chapter will also give you some hints on setting up your Windows environment for maximum build speed and optimal debugging output.
Note |
To compile and run the examples presented in this chapter and in the following chapters, you must have Microsoft Windows NT 4.0, Windows 2000, or Windows XP installed, plus all the Microsoft Visual C++ .NET components. Be sure that Visual C++ .NET's executable, include, and library directories are set correctly. (You can change the directories by choosing Options from the Tools menu and clicking the Projects folder.) If you have any problems with the steps presented, please refer to your Visual C++ .NET documentation and Readme files for troubleshooting instructions. |