Microsoft Visual C++ .NET Step by Step
暫譯: Microsoft Visual C++ .NET 循序漸進

Julian Templeman, Andy Olsen, Michael Hudson, Tyrone Howe

  • 出版商: MicroSoft
  • 出版日期: 2002-01-23
  • 售價: $1,690
  • 貴賓價: 9.5$1,606
  • 語言: 英文
  • 頁數: 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

商品描述(中文翻譯)

描述:

使用受管理的 C++ 透過這本逐步指南來創建 .NET 應用程式。

自學最新版本的 Visual C++™—並開始為 Microsoft® .NET 平台開發—一步一步來。這本實用的、動手操作的教程專業地引導您了解基礎知識—從撰寫受管理的程式碼到運行和調試您的第一個 .NET 應用程式和 Web 服務。按照自己的步調進行易於跟隨的課程和動手練習,以學習基本技術。並透過使用指導性程式碼和 Visual C++ 的 .NET 開發最佳實踐來加速您的生產力。

發現如何:
• 撰寫和運行一個簡單的物件導向程式
• 深入了解繼承和其他 OOP 技術
• 使用 Microsoft Visual Studio® .NET 調試器執行程式碼
• 利用內建的 .NET 支援屬性、陣列和事件
• 生成和處理例外
• 實現運算子重載
• 檢查 .NET Framework,探索主要的命名空間和類別
• 使用 Windows® Forms 創建 GUI 應用程式
• 使用 XML 和 ADO.NET 存取資料
• 創建和使用 Web 服務
• 使用 ATL 建立 Web 服務元件
• 使舊有應用程式準備好 .NET

CD 特點:
• 所有書中的練習檔案
• 範例程式碼

目錄:

引言 VII
系統需求 vii / 安裝和使用練習檔案 viii / 本書中的慣例和特徵 ix / 本書的其他特徵 x / 更正、評論和幫助 x / 訪問 Microsoft Press 網站 x

第一部分 開始使用 C++ 1
第一章 Hello C++! 3
您的第一個 C++ 程式 4 / 創建可執行程式—理論 8 / 創建可執行程式—實踐 9 / 結論 15
第二章 介紹物件導向程式設計 17
什麼是物件導向程式設計? 17 / 物件導向程式語言的特徵 18 / 類別和物件 21 / 物件導向程式設計對開發生命週期的好處 21 / 一個簡單的範例 22
第三章 變數和運算子 29
什麼是變數? 29 / 基本資料類型 30 / 宣告變數 31 / 宣告多個變數 32 / 為變數賦值 32 / 陣列 33 / 指標 34 / 參考 35 / 常數 35 / 列舉 36 / 型別定義 37 / 向類別添加成員變數 37 / .NET Framework 字串類別 39 / 運算子和表達式 40
第四章 使用函數 47
宣告函數原型 48 / 定義函數主體 51 / 呼叫函數 57
第五章 決策和迴圈語句 69
使用 if 語句做決策 69 / 使用 switch 語句做決策 80 / 執行迴圈 84

第二部分 物件導向程式設計的更多內容 97
第六章 更多關於類別和物件 99
將類別組織成標頭檔和源檔 100 / 創建和銷毀物件 106 / 定義建構函數和解構函數 108 / 定義類別範圍的成員 113 / 定義物件關係 118
第七章 控制物件生命週期 129
傳統 C++ 記憶體管理 129 / .NET 方法 132
第八章 繼承 143
設計繼承層次結構 144 / 定義基類 145 / 定義衍生類 147 / 存取基類的成員 150 / 創建物件 153 / 覆寫成員函數 155 / 定義密封類別 160 / 定義和使用介面 160

第三部分 .NET 程式設計基礎 163
第九章 值類型 165
參考類型和值類型 165 / 結構 167 / 列舉 175
第十章 運算子重載 181
什麼是運算子重載 181 / 在受管理類型中重載運算子 183 / 提供重載運算子的指導方針 198
第十一章 例外處理 201
什麼是例外? 201 / 拋出例外 204 / 處理例外 207 / 創建自己的例外類型 217 / 使用 _try_cast 進行動態轉換 220 / 跨語言使用例外 222
第十二章 陣列和集合 227
原生 C++ 陣列 227 / .NET 陣列類別 239 / 其他 .NET 集合類別 247
第十三章 屬性 255
什麼是屬性? 255 / 實現標量屬性 257 / 實現索引屬性 261
第十四章 委派和事件 271
什麼是委派? 271 / 什麼是事件? 279

第四部分 使用 .NET Framework 287
第十五章 .NET Framework 類別庫 289