Microsoft Visual C++ .NET Step by Step

Julian Templeman, Andy Olsen, Michael Hudson, Tyrone Howe

  • 出版商: MicroSoft
  • 出版日期: 2002-01-23
  • 售價: $1,670
  • 貴賓價: 9.5$1,587
  • 語言: 英文
  • 頁數: 626
  • 裝訂: Paperback
  • ISBN: 0735615675
  • ISBN-13: 9780735615670
  • 相關分類: .NETC++ 程式語言Visual C++
  • 已絕版

買這商品的人也買了...

相關主題

商品描述

Description:

Use managed C++ to create .NET applications with this step-by-step guide.

Teach yourself the latest version of Visual C++™—and begin developing for the Microsoftâ .NET platform—one step at a time. This practical, hands-on tutorial expertly guides you through the fundamentals—from writing managed code to running and debugging your first .NET applications and Web services. Work at your own pace through easy-to-follow lessons and hands-on exercises to learn essential techniques. And accelerate your productivity by working with instructive code and best practices for .NET development with Visual C++.

DISCOVER HOW TO:
• Write and run a simple object-oriented program
• Delve deeper with inheritance and other OOP techniques
• Execute code with the Microsoft Visual Studio® .NET debugger
• Exploit built-in .NET support for properties, arrays, and events
• Generate and handle exceptions
• Implement operator overloading
• Examine the .NET Framework, exploring major namespaces and classes
• Use Windows® Forms to create GUI applications
• Access data using XML and ADO.NET
• Create and use Web services
• Build Web service components with ATL
• Make legacy applications .NET-ready


CD FEATURES:
• All the book’s practice files
• Sample code

 

Table of Contents:

INTRODUCTION VII
    System Requirements vii / Installing and Using the Practice Files viii / Conventions and Features in this Book ix / Other Features of This Book x / Corrections, Comments, and Help x / Visit the Microsoft Press World Wide Web Site x  
PART 1  GETTING STARTED WITH C++ 1
CHAPTER 1  Hello C++! 3
    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 17
    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 29
    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 47
    Declaring Function Prototypes 48 / Defining Function Bodies 51 / Calling Functions 57  
CHAPTER 5  Decision and Loop Statements 69
    Making Decisions with the if Statement 69 / Making Decisions with the switch Statement 80 / Performing Loops 84  
PART 2  MORE ABOUT OBJECT-ORIENTED PROGRAMMING 97
CHAPTER 6  More About Classes and Objects 99
    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 129
    Traditional C++ Memory Management 129 / The .NET Approach 132  
CHAPTER 8  Inheritance 143
    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  
PART 3  .NET PROGRAMMING BASICS 163
CHAPTER 9  Value Types 165
    Reference Types and Value Types 165 / Structures 167 / Enumerations 175  
CHAPTER 10  Operator Overloading 181
    What Is Operator Overloading 181 / Overloading Operators in Managed Types 183 / Guidelines for Providing Overloaded Operators 198  
CHAPTER 11  Exception Handling 201
    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 227
    Native C++ Arrays 227 / The .NET Array Class 239 / Other .NET Collection Classes 247  
CHAPTER 13  Properties 255
    What Are Properties? 255 / Implementing Scalar Properties 257 / Implementing Indexed Properties 261  
CHAPTER 14  Delegates and Events 271
    What Are Delegates? 271 / What are Events? 279  
PART 4  USING THE .NET FRAMEWORK 287
CHAPTER 15  The .NET Framework Class Library 289
    What Is the .NET Framework? 289 / The .NET Framework Namespaces 295  
CHAPTER 16  Introducing Windows Forms 307
    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 347
    Using Dialog Boxes 347 / Using Common Dialogs 358 / More About Controls 361  
CHAPTER 18  Graphical Output 391
    Graphics with GDI+ 391 / Handling Images 407 / Printing 409  
CHAPTER 19  Working with Files 415
    The System::IO Namespace 415 / Text Input/Output Using Readers and Writers 417 / Working with Files and Directories 424 / Binary I/O 433  
PART 5  DATA ACCESS 441
CHAPTER 20  Reading and Writing XML 443
    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 475
    Transforming XML 475 / Using XPath 477 / Using XSL 485  
CHAPTER 22  Using ADO.NET 493
    What Is ADO.NET? 494 / Creating a Connected Application 496 / Creating a Disconnected Application 503  
PART 6  CREATING DISTRIBUTED APPLICATIONS 511
CHAPTER 23  Building a Web Service 513
    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 531
    What Is ATL Server? 531 / Creating Web-Based Applications Using ATL Server 533 / Creating Web Services Using ATL 541  
PART 7  ADVANCED TOPICS 551
CHAPTER 25  Working with Unmanaged Code 553
    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 575
    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 599
    COM Components and COM Interop 599 / Using COM Components from .NET Code 600 / Using .NET Components as COM Components 615  
ABOUT THE AUTHORS 618
INDEX 619