Delphi for .NET Developer's Guide
暫譯: Delphi for .NET 開發者指南

Xavier Pacheco

  • 出版商: SAMS
  • 出版日期: 2004-05-01
  • 售價: $2,810
  • 貴賓價: 9.5$2,670
  • 語言: 英文
  • 頁數: 888
  • 裝訂: Paperback
  • ISBN: 0672324431
  • ISBN-13: 9780672324437
  • 相關分類: .NET程式語言
  • 海外代購書籍(需單獨結帳)

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

相關主題

商品描述

Master Microsoft's .NET Framework using Delphi.

  • Written by Delphi and .NET experts Xavier Pacheco and Steve Teixeira.
  • In-depth coverage of the .NET Framework from a Delphi developer perspective.
  • Master ADO.NET and ASP.NET using Delphi.
  • Builds on Delphi's strong object-oriented capabilities to illustrate sound application architectures.
Borland Delphi will embrace and generate programs for Microsoft's .NET Framework. Until now, this was a technology not available to Delphi developers using Borland's tools. This book will bridge that gap by providing the expert knowledge of both Delphi and. NET with the same, practicable and real-world solutions approach used in previous Delphi Developer's Guides. Delphi for .NET Developer's Guide is a new edition of the #1 Delphi book by authors Xavier Pacheco and Steve Teixeira. Steve and Xavier are of the winners of the Delphi Informant Reader's Choice Award for their three previous editions of the book. This newest edition is completely updated for Delphi using the .NET Framework and includes in-depth coverage on Borland's new CLX architecture, DBExpress Applications, SOAP, CORBA, WebSnap and BizSnap features. It continues as a complete reference and authoritative guide to the newest version of Delphi. Additional topics covered include: The .NET Framework; Programs, Units, and Namespaces;.NET Security Custom WinForms Controls; Memory Management and Garbage Collection; COM and COM+ Interoperability; ADO.NET, ASP.NET and Web Services

Xavier Pacheco is President and CEO for Xapware Technologies, Inc. An internationally acclaimed Borland Certified Delphi consultant and trainer, Xavier is a frequent conference speaker and best-selling author of Delphi 5 Developers Guide and writer for the Delphi Informant and Delphi magazines. Xavier is also a Borland TeamB member, a select group of volunteers who provide online support for Inprise/Borland products. Steve Teixeira is the Director of Core Technology at Zone Labs, a creator of Internet security solutions. As a research and development software engineer at Borland, Steve was instrumental in the development of Delphi and C++Builder

Table of Contents:

Introduction.

1. Introduction to .NET.

The .NET Initiative. Distributed Development through Web Services.

2. Overview of the .NET Framework.

From Development to Execution. The Common Language Runtime (CLR). The Common Type System (CTS). The Common Language Specification (CLS). .NET Framework Class Library (FCL).

3. Introduction to Delphi for .NET and the New IDE.

Delphi for .NETa Bigger Picture. Introduction to the Integrated Development Environment (IDE).

4. Programs, Units, and Namespaces.

Managed Module Structures. Namespaces.

5. The Delphi Language.

Its All about .NET. Comments. Procedures and Functions. Variables. Constants. Operators. Delphi Language Types. User-Defined Types. Typecasting and Type Conversion. String Resources. Testing Conditions. Loops. Procedures and Functions. Scope. Units and Namespaces. Packages and Assemblies. Object-Oriented Programming. Using Delphi Objects. Structured Exception Handling.

6. AssembliesLibraries and Packages.

Core Assemblies. Viewing Assembly Contents and Dependencies. Ring the GAC. Building Assemblies. Using Assemblies in Delphi. Using Delphi Assemblies in C#. Installing Packages into the Delphi IDE. Strong Naming Assemblies. Dynamically Loading Assemblies.

7. GDI+ ProgrammingDrawing in .NET.

Fundamental Concepts. Drawing Lines. Drawing Curves. Drawing Shapes. GraphicsPaths and Regions. Working with Images. Revisiting Coordinate Systems. Animation Example.

8. MonoA Cross Platform .NET Project.

Mono Features. History of Mono. Why Mono? Monos Roadmap. Installation/Setup. Creating Your First Mono Program. Running Delphi Generated Assemblies under Mono (on Linux). Cross Platform ASP.NET. ADO.NET with Mono. Mono and Apache. Mono and System.Windows.Forms.

9. Memory Management and Garbage Collection.

How Garbage Collection Works. Constructors. Finalization. The Dispose PatternIDisposable. Performance Issues Regarding Finalization.

10. Collections.

System.Collections Interfaces. System.Collections Classes. Creating a Strongly-Typed Collection. Creating a Strongly-Typed Dictionary.

11. Working with the String and StringBuilder Classes.

The System.String Type. The StringBuilder Class. String Formatting. Format Specifiers.

12. File and Streaming Operations.

System.IO Namespace Classes. Working with the Directory System. Working with Files. Streams. Asynchronous Stream Access. Monitoring Directory Activity. Serialization.

13. Developing Custom WinForms Controls.

Component Building Basics. Sample Components. User Painting: The PlayingCard Control.

14. Threading in Delphi for .NET.

Processes. Threading. Threading .NET Style. AppDomain. The System.Threading Namespace. Writing Thread-safe Code .NET Style. User Interface Issues. Threading Exceptions. Garbage Collection and Threading.

15. Reflection API.

Reflecting an Assembly. Reflecting a Module. Reflecting Types. Runtime Invocation of a Types Members (Late Binding). Emitting MSIL Through Reflection.

16. InteroperabilityCOM Interop and the Platform Invocation Service.

Why Have Interoperability? Common Interoperability Issues. Using COM Objects in .NET Code. Using .NET Objects in COM Code. Using Win32 DLL Exports in .NET Code. Using .NET Routines in Win32 Code.

17. Overview of ADO.NET.

Design Principles. ADO.NET Objects. .NET Data Providers.

18. Using the Connection Object.

Connection Functionality. Setting Up the ConnectionString Property. Opening and Closing Connections. Connection Events. Connection Pooling.

19. Using Command and DataReader Objects.

Executing Commands. Non-Query Commands. Retrieving Single Values. Executing Data Definition Language (DDL) Commands. Specifying Parameters Using IDbParameter. Executing Stored Procedures. Deriving Parameters. Querying for Resultsets Using DataReaders. Querying a Resultset. Querying Multiple Resultsets Using DataReaders. Using DataReader to Retrieve BLOB Data. Using DataReader to Retrieve Schema Information.

20. DataAdapters and DataSets.

DataAdapters. Working with DataSets. Working with DataTables.

21. Working with WinFormsDataViews and Data Binding.

Displaying Data Using DataView and DataViewManager. Data Binding.

22. Saving Data to the Data Source.

Updating the Data Source Using SQLCommandBuilder. Updating the Data Source Using Custom Updating Logic.

23. Working with Transactions and Strongly-Typed DataSets.

Transaction Processing. Strongly-Typed DataSets.

 24. The Borland Data Provider.

Architecture Overview. Borland Data Provider Classes. Designers within the IDE.

25. ASP.NET Fundamentals.

Web TechnologiesHow They Work. ASP.NETHow It Works. ASP.NET Classes.

26. Building ASP.NET Web Pages.

Building Web Pages Using ASP.NET Controls. Pre-populating List Controls. Performing Web Form Validation. Web Form Formatting. Navigating between Web Forms. Tips and Techniques.

27. Building Database Driven ASP.NET Applications.

Data Binding. Data Bound List Controls. Data Bound Iterative Controls. Working with the DataGrid. Database-Driven Download Request Form and Administrator.

28. Building Web Services.

Terms Related to Web Services. Web Service Construction. Consuming Web Services. Securing Web Services.

29. .NET Remoting and Delphi.

Remoting Technologies Available Today. Distributed Architectures. Benefits of Multitier Application Development. .NET Remoting Basics. Your First .NET Remoting Application.

30. .NET Remoting in Action.

Template Project. Tracing Messages. Analyzing the SOAP Packets. Client Activation. Lifetime Management. Failing to Renew the Lease. Configuration Files. Switching from HTTP to TCP Communication. Switching from SOAP to Binary Remoting. Differences Between SOAP and Binary Encoding.

31. Securing ASP.NET Applications.

ASP.NET Security Methods. Authentication. Authorization. Signing Off.

32. ASP.NET Deployment and Configuration.

Deploying ASP.NET Applications. Configuration Settings. Configuration Tips. Adding/Retrieving Custom Configuration Settings.

33. Caching and Managing State in ASP.NET Applications.

Caching ASP.NET Applications. State Management in ASP.NET Applications.

34. Developing Custom ASP.NET Server Controls.

User Controls. Web Controls.

Index

商品描述(中文翻譯)

**掌握微軟的 .NET Framework,使用 Delphi。**
- 由 Delphi 和 .NET 專家 Xavier Pacheco 和 Steve Teixeira 撰寫。
- 從 Delphi 開發者的角度深入探討 .NET Framework。
- 使用 Delphi 精通 ADO.NET 和 ASP.NET。
- 基於 Delphi 強大的物件導向能力,說明健全的應用程式架構。

Borland Delphi 將支援並生成微軟的 .NET Framework 程式。直到現在,這對於使用 Borland 工具的 Delphi 開發者來說是一項無法獲得的技術。本書將填補這一空白,提供 Delphi 和 .NET 的專業知識,並採用與之前的 Delphi 開發者指南相同的實用和現實解決方案方法。《Delphi for .NET Developer's Guide》是由作者 Xavier Pacheco 和 Steve Teixeira 撰寫的第一本 Delphi 書籍的新版本。Steve 和 Xavier 是 Delphi Informant 讀者選擇獎的獲獎者,該獎項是針對他們之前三個版本的書籍。本最新版本已完全更新以支援使用 .NET Framework 的 Delphi,並深入探討 Borland 的新 CLX 架構、DBExpress 應用程式、SOAP、CORBA、WebSnap 和 BizSnap 功能。它繼續作為最新版本 Delphi 的完整參考和權威指南。其他涵蓋的主題包括:.NET Framework;程式、單元和命名空間;.NET 安全性;自訂 WinForms 控制項;記憶體管理和垃圾回收;COM 和 COM+ 互操作性;ADO.NET、ASP.NET 和 Web 服務。

**Xavier Pacheco** 是 Xapware Technologies, Inc. 的總裁兼執行長。他是一位國際知名的 Borland 認證 Delphi 顧問和培訓師,經常在會議上演講,並且是《Delphi 5 Developers Guide》的暢銷書作者,以及 Delphi Informant 和 Delphi 雜誌的撰稿人。Xavier 也是 Borland TeamB 的成員,這是一個提供 Inprise/Borland 產品線上支援的志願者精英團隊。**Steve Teixeira** 是 Zone Labs 的核心技術總監,該公司是網路安全解決方案的創造者。作為 Borland 的研究與開發軟體工程師,Steve 在 Delphi 和 C++Builder 的開發中發揮了重要作用。

**目錄:**

**導言。**

**1. .NET 簡介。**
.NET 計畫。透過 Web 服務的分散式開發。

**2. .NET Framework 概述。**
從開發到執行。通用語言執行時 (CLR)。通用類型系統 (CTS)。通用語言規範 (CLS)。.NET Framework 類別庫 (FCL)。

**3. Delphi for .NET 和新 IDE 簡介。**
Delphi for .NET 的全貌。集成開發環境 (IDE) 簡介。

**4. 程式、單元和命名空間。**
管理模組結構。命名空間。

**5. Delphi 語言。**
一切都與 .NET 有關。註解。程序和函數。變數。常數。運算子。Delphi 語言類型。使用者定義類型。類型轉換和類型轉換。字串資源。測試條件。迴圈。程序和函數。範圍。單元和命名空間。套件和組件。物件導向程式設計。使用 Delphi 物件。結構化例外處理。

**6. 組件、庫和套件。**
核心組件。查看組件內容和依賴性。註冊 GAC。構建組件。在 Delphi 中使用組件。在 C# 中使用 Delphi 組件。將套件安裝到 Delphi IDE。強命名組件。動態加載組件。

**7. GDI+ 程式設計:在 .NET 中繪圖。**
基本概念。繪製線條。繪製曲線。繪製形狀。圖形路徑和區域。處理圖像。重新檢視坐標系統。動畫範例。

**8. Mono:跨平台的 .NET 專案。**
Mono 特性。Mono 的歷史。為什麼選擇 Mono?Mono 的路線圖。安裝/設置。創建您的第一個 Mono 程式。在 Mono 下運行 Delphi 生成的組件(在 Linux 上)。跨平台 ASP.NET。使用 Mono 的 ADO.NET。Mono 和 Apache。Mono 和 System.Windows.Forms。

**9. 記憶體管理和垃圾回收。**
垃圾回收的工作原理。構造函數。終結。Dispose 模式 IDispose。與終結相關的性能問題。

**10. 集合。**
System.Collections 介面。System.Collections 類別。創建強類型集合。創建強類型字典。

**11. 使用字串和 StringBuilder 類別。**
System.String 類型。StringBuilder 類別。字串格式化。格式說明符。

**12. 檔案和串流操作。**
System.IO 命名空間類別。處理目錄系統。處理檔案。串流。非同步串流存取。監控目錄活動。序列化。

**13. 開發自訂 WinForms 控制項。**
元件建構基礎。範例元件。使用者繪製:撲克牌控制項。

**14. 在 Delphi for .NET 中的執行緒。**
進程。執行緒。執行緒 .NET 風格。AppDomain。System.Threading 命名空間。撰寫執行緒安全的程式碼 .NET 風格。使用者介面問題。執行緒例外。垃圾回收和執行緒。

**15. 反射 API。**
反射組件。反射模組。反射類型。類型成員的運行時調用(延遲綁定)。通過反射發出 MSIL。

**16. 互操作性:COM 互操作和平台調用服務。**
為什麼需要互操作性?常見的互操作性問題。在 .NET 程式碼中使用 COM 物件。在 COM 程式碼中使用 .NET 物件。在 .NET 程式碼中使用 Win32 DLL 輸出。在 Win32 程式碼中使用 .NET 程式。

**17. ADO.NET 概述。**
設計原則。ADO.NET 物件。.NET 數據提供者。

**18. 使用連接物件。**
連接功能。設置 ConnectionString 屬性。開啟和關閉連接。連接事件。連接池。

**19. 使用命令和 DataReader 物件。**
執行命令。非查詢命令。檢索單一值。執行數據定義語言 (DDL) 命令。使用 IDbParameter 指定參數。執行儲存過程。推導參數。使用 DataReaders 查詢結果集。查詢結果集。使用 DataReaders 查詢多個結果集。使用 DataReader 檢索 BLOB 數據。使用 DataReader 檢索架構資訊。

**20. DataAdapters 和 DataSets。**
DataAdapters。處理 DataSets。處理 DataTables。

**21. 使用 WinForms 的 DataViews 和資料綁定。**
使用 DataView 和 DataViewManager 顯示數據。資料綁定。

**22. 將數據保存到數據源。**
使用 SQLCommandBuilder 更新數據源。使用自訂更新邏輯更新數據源。

**23. 處理交易和強類型 DataSets。**
交易處理。強類型 DataSets。

**24. Borland 數據提供者。**
架構概述。Borland 數據提供者類別。IDE 中的設計工具。

**25. ASP.NET 基礎。**
網路技術及其運作。ASP.NET 的運作。ASP.NET 類別。

**26. 建立 ASP.NET 網頁。**
使用 ASP.NET 控制項建立網頁。預填充列表控制項。執行網頁表單驗證。網頁表單格式化。在網頁表單之間導航。提示和技巧。

**27. 建立數據驅動的 ASP.NET 應用程式。**
數據綁定。數據綁定列表控制項。數據綁定迭代控制項。處理 DataGrid。數據驅動的下載請求表單和管理員。

**28. 建立 Web 服務。**
與 Web 服務相關的術語。Web 服務建構。消費 Web 服務。保護 Web 服務。

**29. .NET 遠端和 Delphi。**
當前可用的遠端技術。分散式架構。多層應用程式開發的好處。.NET 遠端基礎。您的第一個 .NET 遠端應用程式。

**30. .NET 遠端實作。**
範本專案。追蹤訊息。分析 SOAP 封包。客戶端啟動。生命週期管理。未能續租。配置檔案。從 HTTP 切換到 TCP 通信。從 SOAP 切換到二進位遠端。SOAP 和二進位編碼之間的差異。

**31. 保護 ASP.NET 應用程式。**
ASP.NET 安全方法。身份驗證。授權。登出。

**32. ASP.NET 部署和配置。**
部署 ASP.NET 應用程式。配置設置。配置提示。添加/檢索自訂配置設置。

**33. 在 ASP.NET 應用程式中快取和管理狀態。**
快取 ASP.NET 應用程式。在 ASP.NET 應用程式中管理狀態。

**34. 開發自訂 ASP.NET 伺服器控制項。**
使用者控制項。網頁控制項。

**索引**