.NET and COM: The Complete Interoperability Guide
暫譯: .NET 與 COM:完整的互操作性指南

Adam Nathan

  • 出版商: SAMS
  • 出版日期: 2002-02-10
  • 售價: $2,270
  • 貴賓價: 9.5$2,157
  • 語言: 英文
  • 頁數: 1579
  • 裝訂: Paperback
  • ISBN: 067232170X
  • ISBN-13: 9780672321702
  • 相關分類: .NET
  • 已過版

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

商品描述

 

The focus of the book is on COM Interoperability (since it's a much larger subject), and the heart of the discussion is broken down into four parts:

  • Using COM Components Within the .NET Framework
  • Using .NET Framework Components from COM
  • Designing Good .NET Framework Components for COM Clients
  • Designing Good COM Components for .NET Framework Clients

The scope of the book is just about everything related to using "unmanaged code" in the .NET Framework. Technologies built on top of COM Interoperability are also covered-Interoperability of Windows Forms Controls and ActiveX controls, Interoperability with COM+, and Interoperability with Distributed COM (DCOM). Although Platform Invocation Services is a separate technology from COM Interoperability, there are many areas of overlap, so including in the book is a natural fit. All of these technologies are a core part of the Common Language Runtime and .NET Framework, and will likely be used not only as the path of migration for existing software projects, but for brand new software development for the next several years.

Table of Contents

Introduction.

I. BACKGROUND.

1. Introduction to the .NET Framework.
2. Bridging the Two Worlds-Managed and Unmanaged Code.

II. USING COMCOMPONENTS IN .NETAPPLICATIONS.


3. The Essentials for Using COM in Managed Code.
4. An In-Depth Look at Imported Assemblies.
5. Responding to COM Events.
6. Advanced Topics for Using COM Components.
7. Modifying Interop Assemblies. 

III. USING .NETCOMPONENTS IN COMAPPLICATIONS.


8. The Essentials for Using .NET Components from COM.
9. An In-Depth Look at Exported Type Libraries.
10. Advanced Topics for Using .NET Components.

 

IV. DESIGNING GREAT .NETCOMPONENTS FOR COMCLIENTS.


11. .NET Design Guidelines for Components Used by COM Clients.
12. Customizing COM's View of .NET Components.
13. Exposing .NETEvents to COM Clients.
14. Implementing COM Interfaces for Binary Compatibility.

 

V. DESIGNING GREAT COMCOMPONENTS FOR .NETCLIENTS.


15. Creating and Deploying Useful Primary Interop Assemblies.
16. COM Design Guidelines for Components Used by .NET Clients.
17. Implementing .NET Interfaces for Type Compatibility.

VI. PLATFORM INVOCATION SERVICES (PINVOKE).


18. The Essentials of PInvoke.
19. Deeper Into PInvoke and Useful Examples.

VII. ADVANCED TOPICS.


20. Custom Marshaling.
21. Manually Defining COM Types in Source Code.
22. Using APIs Instead of SDK Tools.

VIII. COMPREHENSIVE EXAMPLES.


23. Writing a .NET Arcade Game Using DirectX.
24. Writing .NET Visualizations For Windows Media Player.

IX. APPENDICES.


Appendix A. System.Runtime.InteropServices Reference.
Appendix B. SDK Tools Reference.
Appendix C. HRESULT to .NET Exception Transformations.
Appendix D. .NET Exception to HRESULT Transformations.
Appendix E. PInvoke Definitions for Win32 Functions.
Appendix F. Glossary.
Index.

商品描述(中文翻譯)

本書的重點在於 COM 互操作性(因為這是一個更大的主題),討論的核心分為四個部分:
- 在 .NET Framework 中使用 COM 元件
- 從 COM 使用 .NET Framework 元件
- 為 COM 客戶端設計良好的 .NET Framework 元件
- 為 .NET Framework 客戶端設計良好的 COM 元件

本書的範圍幾乎涵蓋了在 .NET Framework 中使用「非管理代碼」的所有相關內容。還涵蓋了基於 COM 互操作性的技術,包括 Windows Forms 控制項和 ActiveX 控制項的互操作性、與 COM+ 的互操作性,以及與分散式 COM (DCOM) 的互操作性。雖然平台調用服務(Platform Invocation Services)是一種與 COM 互操作性不同的技術,但有許多重疊的領域,因此將其納入本書是自然而然的選擇。所有這些技術都是公共語言執行時(Common Language Runtime)和 .NET Framework 的核心部分,未來幾年內不僅將作為現有軟體專案的遷移路徑,還將用於全新的軟體開發。

目錄
引言。

I. 背景。
1. .NET Framework 簡介。
2. 橋接兩個世界——管理代碼和非管理代碼。

II. 在 .NET 應用程式中使用 COM 元件。
3. 在管理代碼中使用 COM 的基本要素。
4. 對導入的組件進行深入分析。
5. 響應 COM 事件。
6. 使用 COM 元件的進階主題。
7. 修改互操作組件。

III. 在 COM 應用程式中使用 .NET 元件。
8. 從 COM 使用 .NET 元件的基本要素。
9. 對導出的類型庫進行深入分析。
10. 使用 .NET 元件的進階主題。

IV. 為 COM 客戶端設計優秀的 .NET 元件。
11. COM 客戶端使用的 .NET 設計指南。
12. 自訂 COM 對 .NET 元件的視圖。
13. 將 .NET 事件暴露給 COM 客戶端。
14. 實現二進位相容的 COM 介面。

V. 為 .NET 客戶端設計優秀的 COM 元件。
15. 創建和部署有用的主要互操作組件。
16. .NET 客戶端使用的 COM 設計指南。
17. 實現 .NET 介面以達到類型相容性。

VI. 平台調用服務(PINVOKE)。
18. PInvoke 的基本要素。
19. 更深入的 PInvoke 和有用的範例。

VII. 進階主題。
20. 自訂封送處理。
21. 在源代碼中手動定義 COM 類型。
22. 使用 API 而非 SDK 工具。

VIII. 綜合範例。
23. 使用 DirectX 編寫 .NET 街機遊戲。
24. 為 Windows Media Player 編寫 .NET 視覺化。

IX. 附錄。
附錄 A. System.Runtime.InteropServices 參考。
附錄 B. SDK 工具參考。
附錄 C. HRESULT 到 .NET 異常的轉換。
附錄 D. .NET 異常到 HRESULT 的轉換。
附錄 E. Win32 函數的 PInvoke 定義。
附錄 F. 詞彙表。
索引。