You are previewing Microsoft® Visual C++® .NET: Step by Step.
O'Reilly logo
Microsoft® Visual C++® .NET: Step by Step

Book Description

Teach yourself Visual C++ .NET version 2003—and begin developing Microsoft .NET–connected applications—one step at a time. Master core skills with step-by-step lessons and challenge yourself with simple to complex coding problems.

Table of Contents

  1. Copyright
  2. Introduction
  3. Getting Started with C++ .NET
    1. Hello, C++!
      1. What is a C++ Program?
      2. Your First C++ Program
      3. Creating an Executable Program—Theory
      4. Creating an Executable Program—Practice
      5. Conclusion
      6. Chapter 1 Quick Reference
    2. Introducing Object-Oriented Programming
      1. What is Object-Oriented Programming?
      2. Features of Object-Oriented Programming Languages
      3. Classes and Objects
      4. Benefits to the Developmental Life Cycle
      5. A Simple Example
      6. Chapter 2 Quick Reference
    3. Variables and Operators
      1. What is a Variable?
      2. The Fundamental Data Types
      3. Declaring a Variable
      4. Declaring Multiple Variables
      5. Assigning Values to Variables
      6. Arrays
      7. Pointers
      8. References
      9. Constants
      10. Enumerations
      11. Typedefs
      12. Adding Member Variables to Classes
      13. The .NET Framework String Class
      14. Operators and Expressions
      15. Chapter 3 Quick Reference
    4. Using Functions
      1. Declaring Function Prototypes
      2. Defining Function Bodies
      3. Calling Functions
      4. Chapter 4 Quick Reference
    5. Decision and Loop Statements
      1. Making Decisions with the if Statement
      2. Making Decisions with the switch Statement
      3. Performing Loops
      4. Chapter 5 Quick Reference
  4. More About Object-Oriented Programming
    1. More About Classes and Objects
      1. Organizing Classes into Header Files and Source Files
      2. Creating and Destroying Objects
      3. Defining Constructors and Destructors
      4. Defining Class-Wide Members
      5. Defining Object Relationships
      6. Chapter 6 Quick Reference
    2. Controlling Object Lifetimes
      1. Traditional C++ Memory Management
      2. The .NET Approach
      3. Chapter 7 Quick Reference
    3. Inheritance
      1. Designing an Inheritance Hierarchy
      2. Defining a Base Class
      3. Defining a Derived Class
      4. Accessing Members of the Base Class
      5. Creating Objects
      6. Overriding Member Functions
      7. Defining Sealed Classes
      8. Defining and Using Interfaces
      9. Chapter 8 Quick Reference
  5. Microsoft .NET Programming Basics
    1. Value Types
      1. Reference Types and Value Types
      2. Structures
      3. Enumerations
      4. Chapter 9 Quick Reference
    2. Operator Overloading
      1. What is Operator Overloading?
      2. Overloading Operators in Managed Types
      3. Guidelines for Providing Overloaded Operators
      4. Chapter 10 Quick Reference
    3. Exception Handling
      1. What are Exceptions?
      2. Throwing Exceptions
      3. Handling Exceptions
      4. Creating Your Own Exception Types
      5. Using __try_cast for Dynamic Casting
      6. Using Exceptions Across Languages
      7. Chapter 11 Quick Reference
    4. Arrays and Collections
      1. Native C++ Arrays
      2. The .NET Array Class
      3. Other .NET Collection Classes
      4. Chapter 12 Quick Reference
    5. Properties
      1. What are Properties?
      2. Implementing Scalar Properties
      3. Implementing Indexed Properties
      4. Chapter 13 Quick Reference
    6. Delegates and Events
      1. What are Delegates?
      2. What are Events?
      3. Chapter 14 Quick Reference
  6. Using the .NET Framework
    1. The .NET Framework Class Library
      1. What is the .NET Framework?
      2. The .NET Framework Namespaces
      3. Chapter 15 Quick Reference
    2. Introducing Windows Forms
      1. Windows Forms Applications
      2. The System::Windows::Forms Namespace
      3. Creating and Using Forms
      4. Using Controls
      5. Using Menus
      6. Chapter 16 Quick Reference
    3. Dialog Boxes and Controls
      1. Using Dialog Boxes
      2. Using Common Dialog Boxes
      3. More About Controls
      4. Chapter 17 Quick Reference
    4. Graphical Output
      1. Graphics with GDI+
      2. Handling Images
      3. Printing
      4. Chapter 18 Quick Reference
    5. Working with Files
      1. The System::IO Namespace
      2. Text I/O Using Readers and Writers
      3. Working with Files and Directories
      4. Binary I/O
      5. Chapter 19 Quick Reference
  7. Data Access
    1. Reading and Writing XML
      1. XML and .NET
      2. Parsing XML with XmlTextReader
      3. Parsing XML with Validation
      4. Writing XML Using XmlTextWriter
      5. Using XmlDocument
      6. Chapter 20 Quick Reference
    2. Transforming XML
      1. Using XSL to Transform XML
      2. Using XPath
      3. Using XSL
      4. Chapter 21 Quick Reference
    3. Using ADO.NET
      1. What is ADO.NET?
      2. Creating a Connected Application
      3. Creating a Disconnected Application
      4. Chapter 22 Quick Reference
  8. Creating Distributed Applications
    1. Building a Web Service
      1. What are Web Services?
      2. The Web Services Namespaces
      3. Creating a Simple Web Service
      4. Using the Web Service from a Browser
      5. Using the Web Service from Code
      6. Chapter 23 Quick Reference
    2. Introduction to ATL Server
      1. What is ATL Server?
      2. Creating Web-Based Applications Using ATL Server
      3. Creating Web Services Using ATL
      4. Chapter 24 Quick Reference
  9. Advanced Topics
    1. Working with Unmanaged Code
      1. Managed vs. Unmanaged Code
      2. Pinning and Boxing
      3. Using PInvoke to Call Functions in the Win32 API
      4. Chapter 25 Quick Reference
    2. Attributes and Reflection
      1. Metadata and Attributes
      2. Using Predefined Attributes
      3. Defining Your Own Attributes
      4. Using Reflection to Get Attribute Data
      5. Chapter 26 Quick Reference
    3. Living with COM
      1. COM Components and COM Interop
      2. Using COM Components from .NET Code
      3. Using .NET Components as COM Components
      4. Chapter 27 Quick Reference
  10. Index