Microsoft Visual C Windows applications
Abstract
This is a book about Windows application development in C++. It addresses some rather difficult problems that occur during the development of advanced applications. Most books in this genre have many short code examples. This one has only four main code examples, but rather extensive ones. They are presented in increasing complexity order. The simplest one is the Tetris application, which deals with graphics, timing, and message handling. The Draw application adds a generic coordinate system and introduces more complex applications states. The Calc application deals with formula interpretation and graph searching. Finally, in the Word application every character is allowed to hold its own font and size, resulting in a rather complex size and position calculation. The book starts with an introduction to object-oriented programming in C++, followed by an overview of the Visual Studio environment with the Ring demonstration application as well as a presentation of some basic generic classes. Then the main applications are presented in one chapter each. What This Book Covers Chapter1. Introduction to C++-C++ is a language built on C. It is strongly typed; it has types for storing single as well as compound values. It supports dynamic memory management with pointers. It has a large set of operators to perform arithmetic, logical, and bitwise operations. The code can be organized into functions, and there is a pre-processor available, which can be used to define macros. Chapter 2. Object-oriented Programming in C++-C++ is an object-oriented language that fully supports the object-oriented model. The main feature of the language is the class, which can be instantiated into objects. A class can inherit another class. The inheritance can be virtual, which provides dynamic binding. A class can contain an object or have a pointer to another object. We can overload operators and we can throw exceptions. We can create generic classes by using templates and we can organize our classes into namespaces.
References (14)
- rfEdit = m_pCalcDoc->GetEdit();
- Reference rfFirstMark = m_pCalcDoc->GetFirstMark();
- Reference rfLastMark = m_pCalcDoc->GetLastMark();
- // The cell space. int iMinRow = min(rfFirstMark.GetRow(), rfLastMark.GetRow());
- int iMaxRow = max(rfFirstMark.GetRow(), rfLastMark.GetRow());
- int iMinCol = min(rfFirstMark.GetCol(), rfLastMark.GetCol());
- int iMaxCol = max(rfFirstMark.GetCol(), rfLastMark.GetCol());
- References
- Feuer, A. R. MFC Programming. Reading: Addison Wesley Developers Press, 1997, 452 pages.
- Petzold, C. Windows Programming: The Definitive Guide to the Win32 API. Fifth Edition. Redmond: Microsoft Press, �999, �49� pages.
- Prosise, J. Programming Windows with MFC: The Premier Resource for Object-Oriented Programming on 32-bit Windows Platforms. Second Edition. Redmond: Microsoft Press, �999, �33� pages.
- Shepherd, G. and Wingo, S. MFC Internals: The Inside the Microsoft Foundation Class Architecture. Reading: Addison-Wesley Professional, 1996, 736 pages. Reading: Addison-Wesley Professional, 1996, 736 pages.
- Weiss, M. A. Data Structures and Algorithm Analysis in C++. Third Edition. Reading: Reading: Addison Wesley, 2007, 586 pages.
- West, D. B. Introduction to Graph Theory. Indianapolis: Prentice Hall, 2000, 4�0 pages.