Résumé
This intuitive, self-paced learning system makes it easy for developers to teach themselves how to draw on all the power of Microsoft© Visual C++©, and to see how Visual C++ compares with other popular development languages. Developers learn C++ by following step-by-step instructions with numerous high-quality code examples-all created specifically for this book. Developers can quickly grasp and master the latest enhancements and changes to Visual C++, including its powerful .NET features and services.
Key Book Benefits:
- Makes it easy to learn to tap into the power of Microsoft Visual C++, starting from the basics, and to see how it compares with Microsoft Visual Basic©, Microsoft Visual C#, and Java.
- Contains step-by-step instructions created by experienced programming instructors and course developers, along with numerous high-quality code examples.
- Aimed at both novice and experienced programmers, it helps them keep up-to-date with the latest changes to Visual C++, including Microsoft .NET features.
Contents
- INTRODUCTION
- System Requirements
- Installing and Using the Practice Files
- Conventions and Features in this Book
- Other Features of This Book
- Corrections, Comments, and Help
- Visit the Microsoft Press World Wide Web Site
- PART 1 GETTING STARTED WITH C++
- CHAPTER 1 Hello C++!
Your First C++ Program 4 / Creating an Executable Program—Theory 8 / Creating an Executable Program—Practice 9 / Conclusion 15 - CHAPTER 2 Introducing Object-Oriented Programming
What is Object-Oriented Programming? 17 / Features of Object-Oriented Programming Languages 18 / Classes and Objects 21 / Benefits of Object-Oriented Programming to the Developmental Life Cycle 21 / A Simple Example 22 - CHAPTER 3 Variables and Operators
What is a Variable? 29 / The Fundamental Data Types 30 / Declaring a Variable 31 / Declaring Multiple Variables 32 / Assigning Values to Variables 32 / Arrays 33 / Pointers 34 / References 35 / Constants 35 / Enumerations 36 / Typedefs 37 / Adding Member Variables to Classes 37 / The .NET Framework String Class 39 / Operators and Expressions 40 - CHAPTER 4 Using Functions
Declaring Function Prototypes 48 / Defining Function Bodies 51 / Calling Functions 57 - CHAPTER 5 Decision and Loop Statements
Making Decisions with the if Statement 69 / Making Decisions with the switch Statement 80 / Performing Loops 84
- CHAPTER 1 Hello C++!
- PART 2 MORE ABOUT OBJECT-ORIENTED PROGRAMMING
- CHAPTER 6 More About Classes and Objects
Organizing Classes into Header FIles and Source Files 100 / Creating and Destroying Objects 106 / Defining Constructors and Destructors 108 / Defining Class-Wide Members 113 / Defining Object Relationships 118 - CHAPTER 7 Controlling Object Lifetimes
Traditional C++ Memory Management 129 / The .NET Approach 132 - CHAPTER 8 Inheritance
Designing an Inheritance Hierarchy 144 / Defining a Base Class 145 / Defining a Derived Class 147 / Accessing Members of the Base Class 150 / Creating Objects 153 / Overriding Member Functions 155 / Defining Sealed Classes 160 / Defining and Using Interfaces 160
- CHAPTER 6 More About Classes and Objects
- PART 3 .NET PROGRAMMING BASICS
- CHAPTER 9 Value Types
Reference Types and Value Types 165 / Structures 167 / Enumerations 175 - CHAPTER 10 Operator Overloading
What Is Operator Overloading 181 / Overloading Operators in Managed Types 183 / Guidelines for Providing Overloaded Operators 198 - CHAPTER 11 Exception Handling
What Are Exceptions? 201 / Throwing Exceptions 204 / Handling Exceptions 207 / Creating Your Own Exception Types 217 / Using _try_cast for Dynamic Casting 220 / Using Exceptions Across Languages 222 - CHAPTER 12 Arrays and Collections
Native C++ Arrays 227 / The .NET Array Class 239 / Other .NET Collection Classes 247 - CHAPTER 13 Properties
What Are Properties? 255 / Implementing Scalar Properties 257 / Implementing Indexed Properties 261 - CHAPTER 14 Delegates and Events
What Are Delegates? 271 / What are Events? 279
- CHAPTER 9 Value Types
- PART 4 USING THE .NET FRAMEWORK
- CHAPTER 15 The .NET Framework Class Library
What Is the .NET Framework? 289 / The .NET Framework Namespaces 295 - CHAPTER 16 Introducing Windows Forms
What Is Windows Forms? 307 / The System.Windows.Forms Namespace 310 / Creating and Using Forms 311 / Using Menus 339 - CHAPTER 17 Dialog Boxes and Controls
Using Dialog Boxes 347 / Using Common Dialogs 358 / More About Controls 361 - CHAPTER 18 Graphical Output
Graphics with GDI+ 391 / Handling Images 407 / Printing 409 - CHAPTER 19 Working with Files
The System::IO Namespace 415 / Text Input/Output Using Readers and Writers 417 / Working with Files and Directories 424 / Binary I/O 433
- CHAPTER 15 The .NET Framework Class Library
- PART 5 DATA ACCESS
- CHAPTER 20 Reading and Writing XML
XML and .NET 444 / Parsing XML with XmlTextReader 445 / Parsing XML with Validation 452 / Writing XML Using XmlTextWriter 457 / Using XmlDocument 462 - CHAPTER 21 Transforming XML
Transforming XML 475 / Using XPath 477 / Using XSL 485 - CHAPTER 22 Using ADO.NET
What Is ADO.NET? 494 / Creating a Connected Application 496 / Creating a Disconnected Application 503
- CHAPTER 20 Reading and Writing XML
- PART 6 CREATING DISTRIBUTED APPLICATIONS
- CHAPTER 23 Building a Web Service
What Are Web Services? 513 / The Web Services Namespaces 518 / Creating a Simple Web Service 519 / Using the Web Service Service from a Brower 521 / Using the Web Service from Code 523 - CHAPTER 24 Introduction to ATL Server
What Is ATL Server? 531 / Creating Web-Based Applications Using ATL Server 533 / Creating Web Services Using ATL 541
- CHAPTER 23 Building a Web Service
- PART 7 ADVANCED TOPICS
- CHAPTER 25 Working with Unmanaged Code
Managed vs. Unmanaged Code 553 / Pinning and Boxing 558 / Using P/Invoke to Call Functions in the Win32 API 565 - CHAPTER 26 Attributes and Reflection
Metadata and Attributes 575 / Using Predefined Attributes 578 / Defining Your Own Attributes 585 / Using Reflection to Get Attribute Data 591 - CHAPTER 27 Living with COM
COM Components and COM Interop 599 / Using COM Components from .NET Code 600 / Using .NET Components as COM Components 615
- CHAPTER 25 Working with Unmanaged Code
- ABOUT THE AUTHORS
- INDEX
L'auteur - Julian Templeman
As a professional consultant, trainer, and writer,
Julian Templeman has been involved in using, teaching, and
writing about COM for five years. He's taught COM courses
to hundreds of students throughout the United Kingdom and
Europe, and as a result he knows how to explain complex COM
issues to programmers. As a consultant, he's advised large
and small companies on COM technology, and he has a firm
grasp of the practicalities involved in the everyday use of
COM in Windows-based software development.
Julian has also been sole or joint author of 10 programming
books, so he has expertise in explaining programming topics
in writing. Two of these books concerned COM: the first was
the only detailed book on using COM with the Microsoft MFC
library, and the second was the best-selling Beginning ATL
COM Programming from Wrox Press. Julian's most recent book,
published through microsoft Press, is Microsoft Visual C++
.NET Step by Step.
On the .NET side, Julian has been using .NET since the
first alpha version was handed out at the Denver
Professional Developers' Conference in 1998. At the time of
writing (April 2002), he has contributed to three .NET
books on the market, and he has an in-depth knowledge of
the .NET technologies at both overview and detailed levels.
In addition, he has recently coauthored Microsoft Official
Curriculum course 2558 on writing .NET code using Visual
C++ .NET. Julian is also currently running .NET programming
courses and doing a small (but increasing) amount of .NET
consultancy work.
L'auteur - Andy Olsen
Andy Olsen - Andy is a freelance consultant engaged in training, consultancy, and development work in Microsoft .NET and related technologies. Andy studied Physics at Southampton University in England, and began his professional life as a C developer. As the 1990s came and went, Andy migrated into C++, Visual Basic, Java, and OO Analysis and Design using UML. He has been using Microsoft development tools and technologies since 1987, and has fond memories and many tall stories to tell of times gone by.
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Microsoft Press |
Auteur(s) | Julian Templeman, Andy Olsen |
Parution | 08/02/2002 |
Nb. de pages | 626 |
Format | 18,6 x 23,3 |
Couverture | Broché |
Poids | 1278g |
Intérieur | 2 couleurs |
EAN13 | 9780735615670 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse